SkyeYoung commented on code in PR #3016: URL: https://github.com/apache/apisix-dashboard/pull/3016#discussion_r2075827446
########## src/components/form-slice/FormPartConsumer.tsx: ########## @@ -0,0 +1,38 @@ +import { useFormContext } from 'react-hook-form'; +import { useTranslation } from 'react-i18next'; +import { FormItemTextInput } from '@/components/form/TextInput'; +import { FormPartBasic } from './FormPartBasic'; +import { FormSection } from './FormSection'; +import { FormItemPlugins } from './FormItemPlugins'; +import type { APISIXType } from '@/types/schema/apisix'; + +const FormSectionPlugins = () => { + const { t } = useTranslation(); + return ( + <FormSection legend={t('form.plugins.label')}> + <FormItemPlugins name="plugins" /> + </FormSection> + ); +}; + +export const FormPartConsumer = () => { + const { t } = useTranslation(); + const { control } = useFormContext<APISIXType['ConsumerPut']>(); + + return ( + <> + <FormPartBasic showName={false} before={ <FormItemTextInput Review Comment: done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org