diff --git a/package.json b/package.json index ba2cebc..53ade08 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", "preview": "tsc && vite build && vite preview", "lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0" }, diff --git a/src/components/FilterPanel/components/StatusCheckboxGroup/StatusCheckboxGroup.tsx b/src/components/FilterPanel/components/StatusCheckboxGroup/StatusCheckboxGroup.tsx index 3331a5e..e4aded8 100644 --- a/src/components/FilterPanel/components/StatusCheckboxGroup/StatusCheckboxGroup.tsx +++ b/src/components/FilterPanel/components/StatusCheckboxGroup/StatusCheckboxGroup.tsx @@ -11,11 +11,10 @@ import useMediaQuery from '@mui/material/useMediaQuery' import FilterAltIcon from '@mui/icons-material/FilterAlt' import { VerticalDivider } from 'components/VerticalDivider' -import { CustomCheckbox } from './components/CustomCheckbox' - import { dimensions, urlKeys } from 'constants/index' import { useChangeURL } from 'hooks/index' import IPalette from 'theme/IPalette.interface' +import { CustomCheckbox } from './components/CustomCheckbox' import { useGetStatusesFullInfo } from './hooks/useGetStatusesFullInfo' interface StatusCheckboxGroupProps { diff --git a/src/components/FilterPanel/components/StatusCheckboxGroup/hooks/useGetStatusesFullInfo.ts b/src/components/FilterPanel/components/StatusCheckboxGroup/hooks/useGetStatusesFullInfo.ts index f201928..716bc6d 100644 --- a/src/components/FilterPanel/components/StatusCheckboxGroup/hooks/useGetStatusesFullInfo.ts +++ b/src/components/FilterPanel/components/StatusCheckboxGroup/hooks/useGetStatusesFullInfo.ts @@ -2,7 +2,6 @@ import { ChangeEvent } from 'react' import { useSearchParams } from 'react-router-dom' import useTheme from '@mui/material/styles/useTheme' - import { statuses, urlKeys } from 'constants/index' import { useChangeURL } from 'hooks/index' import IPalette from 'theme/IPalette.interface' diff --git a/src/constants/index.ts b/src/constants/index.ts index 5ad1825..ff0f9e1 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -1,12 +1,12 @@ -export { endpoints } from "./endpoints"; -export { dimensions } from "./dimensions"; -export { general } from "./general"; -export { roles } from "./roles"; -export { permissions } from "./permissions"; -export { storage } from "./storage"; -export { urlKeys } from "./urlKeys"; -export { statuses } from "./statuses"; -export { createFormKeys } from "./createFormKeys"; -export { toggleOptions } from "./toggleOptions"; -export { profileFormKeys } from "./profileFormKeys"; -export { scopes } from "./scopes"; +export { createFormKeys } from './createFormKeys' +export { dimensions } from './dimensions' +export { endpoints } from './endpoints.ts' +export { general } from './general' +export { permissions } from './permissions' +export { profileFormKeys } from './profileFormKeys' +export { roles } from './roles' +export { scopes } from './scopes' +export { statuses } from './statuses' +export { storage } from './storage' +export { toggleOptions } from './toggleOptions' +export { urlKeys } from './urlKeys' diff --git a/src/pages/FullTicketInfo/hooks/useCommentsConnection.ts b/src/pages/FullTicketInfo/hooks/useCommentsConnection.ts index ec63912..c1bdc48 100644 --- a/src/pages/FullTicketInfo/hooks/useCommentsConnection.ts +++ b/src/pages/FullTicketInfo/hooks/useCommentsConnection.ts @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react' -import { endpoints } from 'constants' +import { endpoints } from 'constants/endpoints' import { useAuth } from 'context/AuthContext/AuthContext' import { getAccessToken } from 'functions/manipulateLocalStorage' import { IAction } from '../components/FullTicketComments/components/Action/Action'