Skip to content

Commit

Permalink
chore: Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Aug 12, 2024
1 parent ff8287e commit 803f1b9
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/frontend/src/components/form/auto-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Form } from '../ui/form';
import { Button } from '../ui/button';
import { cn } from '@/helpers/classnames';
import { AutoFormObject } from '@/components/form/object';

import { getDefaultValues, getObjectFormSchema } from './utils';
import { Dependency, FieldConfig, ZodObjectOrWrapped } from './type';

Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/components/form/fields/checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { AutoFormInputComponentProps } from '../type';
import { cn } from '@/helpers/classnames';

import { FormControl, FormMessage } from '../../ui/form';
import { Checkbox } from '../../ui/checkbox';
import { AutoFormWrapper } from './common/wrapper';
import { DefaultParent } from './common/children';
import { AutoFormLabel } from './common/label';
import { AutoFormTooltip } from './common/tooltip';

import { Checkbox } from '../../ui/checkbox';
import { FormControl, FormMessage } from '../../ui/form';

export const AutoFormCheckbox = ({
autoFormProps: { isRequired, fieldConfigItem, field, theme, isDisabled },
...props
Expand Down
10 changes: 5 additions & 5 deletions packages/frontend/src/components/form/fields/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import { useTranslations } from 'next-intl';
import { Check, ChevronsUpDown } from 'lucide-react';

import { cn } from '@/helpers/classnames';

import { getBaseSchema } from '../utils';
import { AutoFormInputComponentProps } from '../type';
import { DefaultParent } from './common/children';
import { AutoFormWrapper } from './common/wrapper';
import { AutoFormLabel } from './common/label';
import { AutoFormTooltip } from './common/tooltip';

import { FormControl, FormMessage } from '../../ui/form';
import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
import { Button } from '../../ui/button';
Expand All @@ -18,10 +22,6 @@ import {
CommandItem,
CommandList,
} from '../../ui/command';
import { DefaultParent } from './common/children';
import { AutoFormWrapper } from './common/wrapper';
import { AutoFormLabel } from './common/label';
import { AutoFormTooltip } from './common/tooltip';

export const AutoFormCombobox = ({
autoFormProps: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FormLabel } from '@/components/ui/form';
import { cn } from '@/helpers/classnames';

import { AutoFormInputComponentProps } from '../../type';

export const AutoFormLabel = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FormItem } from '@/components/ui/form';
import { cn } from '@/helpers/classnames';

import { AutoFormInputComponentProps } from '../../type';

export const AutoFormWrapper = ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as z from 'zod';

import { AutoFormInputComponentProps } from '../type';
import { getBaseSchema } from '../utils';
import { DefaultParent } from './common/children';
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/components/form/fields/select.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as z from 'zod';
import { useTranslations } from 'next-intl';

import { AutoFormInputComponentProps } from '../type';
import {
Select,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { Progress } from '@/components/ui/progress';
import { Button } from '@/components/ui/button';
import { removeSpecialCharacters } from '@/helpers/special-characters';
import { AutoFormCheckbox } from '@/components/form/fields/checkbox';

import { useInstallVitnode } from '../../hooks/use-install-vitnode';
import { AutoForm } from '@/components/form/auto-form';
import { AutoFormInput } from '@/components/form/fields/input';

import { useInstallVitnode } from '../../hooks/use-install-vitnode';

export const AccountInstallConfigsView = () => {
const t = useTranslations('core');
const { onSubmit, formSchema, values, setValues } = useSignUpView();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as z from 'zod';

import { Button } from '@/components/ui/button';
import { AutoFormCheckbox } from '@/components/form/fields/checkbox';
import { AutoForm } from '@/components/form/auto-form';

import { useInstallVitnode } from '../../hooks/use-install-vitnode';
import { AutoForm } from '@/components/form/auto-form';

export const FormLicenseInstallConfigs = () => {
const tCore = useTranslations('core');
Expand Down

0 comments on commit 803f1b9

Please sign in to comment.