2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-07 04:12:11 +00:00

remove unneeded imports

This commit is contained in:
Matthias Mair
2024-04-15 21:13:34 +02:00
parent 48e224672a
commit 5703eb535c
8 changed files with 5 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
import { rem } from '@mantine/core';
import { style } from '@vanilla-extract/css';
import { vars } from '../../theme';

View File

@@ -1,8 +1,5 @@
import { rem } from '@mantine/core';
import { style } from '@vanilla-extract/css';
import { vars } from '../../theme';
export const flex = style({
display: 'flex',
flex: 1

View File

@@ -12,7 +12,7 @@ import { Link, useNavigate } from 'react-router-dom';
import { doLogout } from '../../functions/auth';
import * as classes from '../../main.css';
import { useUserState } from '../../states/UserState';
import { theme, vars } from '../../theme';
import { vars } from '../../theme';
export function MainMenu() {
const navigate = useNavigate();

View File

@@ -18,7 +18,7 @@ import { menuItems } from '../../defaults/menuItems';
import * as classes from '../../main.css';
import { useServerApiState } from '../../states/ApiState';
import { useLocalState } from '../../states/LocalState';
import { theme, vars } from '../../theme';
import { vars } from '../../theme';
import { InvenTreeLogo } from '../items/InvenTreeLogo';
import { MenuLinks } from '../items/MenuLinks';

View File

@@ -2,7 +2,6 @@ import { Trans } from '@lingui/macro';
import { Button, Stack, Title } from '@mantine/core';
import { useColorScheme } from '@mantine/hooks';
import { IconExternalLink } from '@tabler/icons-react';
import { useCodeMirror } from '@uiw/react-codemirror';
import { vars } from '../../theme';

View File

@@ -1,4 +1,3 @@
import { rem } from '@mantine/core';
import { style } from '@vanilla-extract/css';
import { vars } from '../../theme';

View File

@@ -15,13 +15,12 @@ import { ServerInfoModal } from '../components/modals/ServerInfoModal';
import { useLocalState } from '../states/LocalState';
export function ThemeContext({ children }: { children: JSX.Element }) {
const [primaryColor, whiteColor, blackColor, radius, loader] = useLocalState(
const [primaryColor, whiteColor, blackColor, radius] = useLocalState(
(state) => [
state.primaryColor,
state.whiteColor,
state.blackColor,
state.radius,
state.loader
state.radius
]
);
@@ -36,7 +35,6 @@ export function ThemeContext({ children }: { children: JSX.Element }) {
primaryColor: primaryColor,
white: whiteColor,
black: blackColor,
//loader: loader,
defaultRadius: radius,
breakpoints: {
xs: '30em',

View File

@@ -1,5 +1,5 @@
import { t } from '@lingui/macro';
import type { SpotlightAction, SpotlightActionData } from '@mantine/spotlight';
import type { SpotlightActionData } from '@mantine/spotlight';
import { IconHome, IconLink, IconPointer } from '@tabler/icons-react';
import { NavigateFunction } from 'react-router-dom';