mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	remove unneeded imports
This commit is contained in:
		@@ -1,4 +1,3 @@
 | 
			
		||||
import { rem } from '@mantine/core';
 | 
			
		||||
import { style } from '@vanilla-extract/css';
 | 
			
		||||
 | 
			
		||||
import { vars } from '../../theme';
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,3 @@
 | 
			
		||||
import { rem } from '@mantine/core';
 | 
			
		||||
import { style } from '@vanilla-extract/css';
 | 
			
		||||
 | 
			
		||||
import { vars } from '../../theme';
 | 
			
		||||
 
 | 
			
		||||
@@ -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',
 | 
			
		||||
 
 | 
			
		||||
@@ -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';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user