From 0b30ce657136d54008cc96133b99f1f4e65e976a Mon Sep 17 00:00:00 2001 From: ilnaz <237x237@gmail.com> Date: Sat, 23 Nov 2024 15:37:06 +0300 Subject: [PATCH] feat: divide imports by types (#35) --- src/components/Masters/Masters.tsx | 3 ++- src/components/Orders/Orders.tsx | 5 +++-- src/pages/arm/index.tsx | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Masters/Masters.tsx b/src/components/Masters/Masters.tsx index f871257..149923a 100644 --- a/src/components/Masters/Masters.tsx +++ b/src/components/Masters/Masters.tsx @@ -11,10 +11,11 @@ import { useDisclosure, Flex, } from '@chakra-ui/react'; +import { useTranslation } from 'react-i18next'; + import { mastersData } from '../../mocks'; import MasterItem from '../MasterItem'; import MasterDrawer from '../MasterDrawer'; -import { useTranslation } from 'react-i18next'; const TABLE_HEADERS = [ 'name' as const, diff --git a/src/components/Orders/Orders.tsx b/src/components/Orders/Orders.tsx index a80d886..fc95feb 100644 --- a/src/components/Orders/Orders.tsx +++ b/src/components/Orders/Orders.tsx @@ -1,8 +1,9 @@ -import { Box, Heading, Table, Thead, Tbody, Tr, Th } from '@chakra-ui/react'; import React from 'react'; +import { Box, Heading, Table, Thead, Tbody, Tr, Th } from '@chakra-ui/react'; +import { useTranslation } from 'react-i18next'; + import { ordersData } from '../../mocks'; import OrderItem from '../OrderItem'; -import { useTranslation } from 'react-i18next'; import { OrderProps } from '../OrderItem/OrderItem'; const Orders = () => { diff --git a/src/pages/arm/index.tsx b/src/pages/arm/index.tsx index dda1851..49ab77b 100644 --- a/src/pages/arm/index.tsx +++ b/src/pages/arm/index.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React from 'react'; import LayoutArm from '../../components/LayoutArm';