← marzneshin
/
dashboard/src/modules/hosts/dialogs/mutation/fields/splithttp/padding-bytes.tsx
/
blame
https://dev.kronoz.win/r/marzneshin.git
| 1 | 4056c66 | Dawsh | 1y ago | import { |
| 2 | 4056c66 | Dawsh | 1y ago | FormControl, |
| 3 | 4056c66 | Dawsh | 1y ago | FormField, |
| 4 | 4056c66 | Dawsh | 1y ago | FormItem, |
| 5 | 4056c66 | Dawsh | 1y ago | FormLabel, |
| 6 | 4056c66 | Dawsh | 1y ago | Input, |
| 7 | 4056c66 | Dawsh | 1y ago | } from "@marzneshin/common/components"; |
| 8 | 4056c66 | Dawsh | 1y ago | import { useTranslation } from "react-i18next"; |
| 9 | 4056c66 | Dawsh | 1y ago | |
| 10 | 4056c66 | Dawsh | 1y ago | |
| 11 | 4056c66 | Dawsh | 1y ago | export const SplitHttpPaddingBytesField = ( |
| 12 | 4056c66 | Dawsh | 1y ago | { updater }: { updater: (field: string, value: any) => void } |
| 13 | 4056c66 | Dawsh | 1y ago | ) => { |
| 14 | 4056c66 | Dawsh | 1y ago | const { t } = useTranslation(); |
| 15 | 4056c66 | Dawsh | 1y ago | return ( |
| 16 | 4056c66 | Dawsh | 1y ago | <FormField |
| 17 | 4056c66 | Dawsh | 1y ago | name="splithttp_settings.padding_bytes" |
| 18 | 4056c66 | Dawsh | 1y ago | render={({ field }) => ( |
| 19 | 4056c66 | Dawsh | 1y ago | <FormItem> |
| 20 | 4056c66 | Dawsh | 1y ago | <FormLabel> |
| 21 | 4056c66 | Dawsh | 1y ago | {t("Padding Bytes")} |
| 22 | 4056c66 | Dawsh | 1y ago | </FormLabel> |
| 23 | 4056c66 | Dawsh | 1y ago | <FormControl> |
| 24 | 4056c66 | Dawsh | 1y ago | <Input |
| 25 | 4056c66 | Dawsh | 1y ago | value={field.value} |
| 26 | 4056c66 | Dawsh | 1y ago | onChange={(e) => |
| 27 | 4056c66 | Dawsh | 1y ago | updater( |
| 28 | 4056c66 | Dawsh | 1y ago | "splithttp_settings.padding_bytes", |
| 29 | 4056c66 | Dawsh | 1y ago | e.target.value |
| 30 | 4056c66 | Dawsh | 1y ago | ) |
| 31 | 4056c66 | Dawsh | 1y ago | } |
| 32 | 4056c66 | Dawsh | 1y ago | className="w-full" |
| 33 | 4056c66 | Dawsh | 1y ago | /> |
| 34 | 4056c66 | Dawsh | 1y ago | </FormControl> |
| 35 | 4056c66 | Dawsh | 1y ago | </FormItem> |
| 36 | 4056c66 | Dawsh | 1y ago | )} |
| 37 | 4056c66 | Dawsh | 1y ago | /> |
| 38 | 4056c66 | Dawsh | 1y ago | ) |
| 39 | 4056c66 | Dawsh | 1y ago | } |