chore: optimize imports

This commit is contained in:
Luke
2023-11-15 15:32:04 +01:00
parent 882e372895
commit 36662050ff
22 changed files with 20 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
import { Modal, Button, Stack, Group, useMantineTheme, createStyles } from '@mantine/core';
import { Button, createStyles, Group, Modal, Stack, useMantineTheme } from '@mantine/core';
import { useState } from 'react';
import ReactMarkdown from 'react-markdown';
import { useNuiEvent } from '../../hooks/useNuiEvent';

View File

@@ -1,8 +1,9 @@
import { Group, Modal, Button, Stack } from '@mantine/core';
import { Button, Group, Modal, Stack } from '@mantine/core';
import React from 'react';
import { useNuiEvent } from '../../hooks/useNuiEvent';
import { useLocales } from '../../providers/LocaleProvider';
import { fetchNui } from '../../utils/fetchNui';
import type { InputProps } from '../../typings';
import { OptionValue } from '../../typings';
import InputField from './components/fields/input';
import CheckboxField from './components/fields/checkbox';
@@ -14,7 +15,6 @@ import ColorField from './components/fields/color';
import DateField from './components/fields/date';
import TextareaField from './components/fields/textarea';
import TimeField from './components/fields/time';
import type { IDateInput, InputProps } from '../../typings';
import dayjs from 'dayjs';
export type FormValues = {

View File

@@ -2,7 +2,6 @@ import { IColorInput } from '../../../../typings/dialog';
import { Control, useController } from 'react-hook-form';
import { FormValues } from '../../InputDialog';
import { ColorInput } from '@mantine/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import LibIcon from '../../../../components/LibIcon';
interface Props {

View File

@@ -2,7 +2,6 @@ import { IDateInput } from '../../../../typings/dialog';
import { Control, useController } from 'react-hook-form';
import { FormValues } from '../../InputDialog';
import { DatePicker, DateRangePicker } from '@mantine/dates';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import LibIcon from '../../../../components/LibIcon';
interface Props {

View File

@@ -1,5 +1,4 @@
import { createStyles, PasswordInput, TextInput } from '@mantine/core';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React from 'react';
import { IInput } from '../../../../typings/dialog';
import { UseFormRegisterReturn } from 'react-hook-form';

View File

@@ -1,6 +1,5 @@
import { NumberInput } from '@mantine/core';
import { INumber } from '../../../../typings/dialog';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Control, useController } from 'react-hook-form';
import { FormValues } from '../../InputDialog';
import LibIcon from '../../../../components/LibIcon';

View File

@@ -2,7 +2,6 @@ import { MultiSelect, Select } from '@mantine/core';
import { ISelect } from '../../../../typings';
import { Control, useController } from 'react-hook-form';
import { FormValues } from '../../InputDialog';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import LibIcon from '../../../../components/LibIcon';
interface Props {