2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-09 21:30:54 +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 { style } from '@vanilla-extract/css';
import { vars } from '../../theme'; import { vars } from '../../theme';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
import { t } from '@lingui/macro'; 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 { IconHome, IconLink, IconPointer } from '@tabler/icons-react';
import { NavigateFunction } from 'react-router-dom'; import { NavigateFunction } from 'react-router-dom';