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,5 +1,5 @@
|
||||
import { useNuiEvent } from '../../../hooks/useNuiEvent';
|
||||
import { Box, Stack, Text, Flex, createStyles } from '@mantine/core';
|
||||
import { Box, createStyles, Flex, Stack, Text } from '@mantine/core';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { ContextMenuProps } from '../../../typings';
|
||||
import ContextButton from './components/ContextButton';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Button, Box, Group, Stack, Text, Progress, HoverCard, Image, createStyles } from '@mantine/core';
|
||||
import { Button, createStyles, Group, HoverCard, Image, Progress, Stack, Text } from '@mantine/core';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import { Option, ContextMenuProps } from '../../../../typings';
|
||||
import { ContextMenuProps, Option } from '../../../../typings';
|
||||
import { fetchNui } from '../../../../utils/fetchNui';
|
||||
import { isIconUrl } from '../../../../utils/isIconUrl';
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Button, createStyles } from '@mantine/core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
import LibIcon from '../../../../components/LibIcon';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Checkbox, createStyles, Stack } from '@mantine/core';
|
||||
import { Checkbox, createStyles } from '@mantine/core';
|
||||
|
||||
const useStyles = createStyles((theme) => ({
|
||||
root: {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Box, Group, Stack, Text, Progress, Image } from '@mantine/core';
|
||||
import { Box, createStyles, Group, Progress, Stack, Text } from '@mantine/core';
|
||||
import React, { forwardRef } from 'react';
|
||||
import CustomCheckbox from './CustomCheckbox';
|
||||
import type { MenuItem } from '../../../typings';
|
||||
import { createStyles } from '@mantine/core';
|
||||
import { isIconUrl } from '../../../utils/isIconUrl';
|
||||
import { IconProp } from '@fortawesome/fontawesome-svg-core';
|
||||
import LibIcon from '../../../components/LibIcon';
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { Box, createStyles, Stack, Tooltip } from '@mantine/core';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useNuiEvent } from '../../../hooks/useNuiEvent';
|
||||
import ListItem from './ListItem';
|
||||
import Header from './Header';
|
||||
import FocusTrap from 'focus-trap-react';
|
||||
import { fetchNui } from '../../../utils/fetchNui';
|
||||
import React from 'react';
|
||||
import type { MenuPosition, MenuSettings } from '../../../typings';
|
||||
import LibIcon from '../../../components/LibIcon';
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { Box, createStyles } from '@mantine/core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { useNuiEvent } from '../../../hooks/useNuiEvent';
|
||||
import { fetchNui } from '../../../utils/fetchNui';
|
||||
|
||||
Reference in New Issue
Block a user