diff --git a/components/AppShelf/AddAppShelfItem.tsx b/components/AppShelf/AddAppShelfItem.tsx index 2ca82d4df..d8e619a9d 100644 --- a/components/AppShelf/AddAppShelfItem.tsx +++ b/components/AppShelf/AddAppShelfItem.tsx @@ -18,7 +18,7 @@ import { useState } from 'react'; import { Apps } from 'tabler-icons-react'; import { useConfig } from '../../tools/state'; import { ServiceTypeList } from '../../tools/types'; -import { AppShelfItemWrapper } from './AppShelf'; +import { AppShelfItemWrapper } from './AppShelfItemWrapper'; export default function AddItemShelfItem(props: any) { const { addService } = useConfig(); diff --git a/components/AppShelf/AppShelf.tsx b/components/AppShelf/AppShelf.tsx index 118f1238c..509d3f676 100644 --- a/components/AppShelf/AppShelf.tsx +++ b/components/AppShelf/AppShelf.tsx @@ -3,7 +3,6 @@ import { motion } from 'framer-motion'; import { Text, AspectRatio, - createStyles, SimpleGrid, Card, useMantineTheme, @@ -11,31 +10,12 @@ import { Group, Space, } from '@mantine/core'; -import AppShelfMenu from './AppShelfMenu'; -import AddItemShelfItem from './AddAppShelfItem'; import { useConfig } from '../../tools/state'; import { pingQbittorrent } from '../../tools/api'; import { serviceItem } from '../../tools/types'; - -export function AppShelfItemWrapper(props: any) { - const { children, hovering } = props; - const theme = useMantineTheme(); - return ( - - {children} - - ); -} +import AddItemShelfItem from './AddAppShelfItem'; +import { AppShelfItemWrapper } from './AppShelfItemWrapper'; +import AppShelfMenu from './AppShelfMenu'; const AppShelf = (props: any) => { const { config, addService, removeService, setConfig } = useConfig(); diff --git a/components/AppShelf/AppShelfItemWrapper.tsx b/components/AppShelf/AppShelfItemWrapper.tsx new file mode 100644 index 000000000..a305661e6 --- /dev/null +++ b/components/AppShelf/AppShelfItemWrapper.tsx @@ -0,0 +1,21 @@ +import { useMantineTheme, Card } from '@mantine/core'; + +export function AppShelfItemWrapper(props: any) { + const { children, hovering } = props; + const theme = useMantineTheme(); + return ( + + {children} + + ); +}