mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
chore: optimize imports
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user