diff --git a/components/AppShelf/AddAppShelfItem.tsx b/components/AppShelf/AddAppShelfItem.tsx index 51ca78615..e8eee7d87 100644 --- a/components/AppShelf/AddAppShelfItem.tsx +++ b/components/AppShelf/AddAppShelfItem.tsx @@ -1,7 +1,6 @@ import { useMantineTheme, Modal, - Paper, Center, Group, TextInput, @@ -9,9 +8,7 @@ import { Button, Select, AspectRatio, - Box, Text, - Grid, Card, } from '@mantine/core'; import { useForm } from '@mantine/hooks'; @@ -19,10 +16,10 @@ import { motion } from 'framer-motion'; import { useState } from 'react'; import { Apps } from 'tabler-icons-react'; import { useConfig } from '../../tools/state'; -import { ServiceType, ServiceTypeList } from '../../tools/types'; +import { ServiceTypeList } from '../../tools/types'; export default function AddItemShelfItem(props: any) { - const { config, addService } = useConfig(); + const { addService } = useConfig(); const [opened, setOpened] = useState(false); const theme = useMantineTheme(); const form = useForm({ @@ -123,7 +120,6 @@ export default function AddItemShelfItem(props: any) { > ; -export const One = (args: any) => ; \ No newline at end of file +export const One = (args: any) => ; diff --git a/components/AppShelf/AppShelf.tsx b/components/AppShelf/AppShelf.tsx index 1518ba9d6..956591065 100644 --- a/components/AppShelf/AppShelf.tsx +++ b/components/AppShelf/AppShelf.tsx @@ -1,30 +1,20 @@ import React, { useEffect, useState } from 'react'; import { motion } from 'framer-motion'; import { - Grid, - Group, Text, - Anchor, - Box, AspectRatio, createStyles, Center, - Container, SimpleGrid, - Space, Card, useMantineTheme, Image, - Badge, } from '@mantine/core'; -import { showNotification } from '@mantine/notifications'; -import { AlertCircle, Cross, X } from 'tabler-icons-react'; import AppShelfMenu from './AppShelfMenu'; import AddItemShelfItem from './AddAppShelfItem'; import { useConfig } from '../../tools/state'; import { pingQbittorrent } from '../../tools/api'; -import { Config, serviceItem } from '../../tools/types'; -import { SettingsMenuButton } from '../Settings/SettingsMenu'; +import { serviceItem } from '../../tools/types'; const useStyles = createStyles((theme) => ({ main: { @@ -82,7 +72,7 @@ export function AppShelfItem(props: any) { style={{ boxShadow: hovering ? '0px 0px 3px rgba(0, 0, 0, 0.5)' : '0px 0px 1px rgba(0, 0, 0, 0.5)', }} - radius={'md'} + radius="md" >
- + {service.name}
diff --git a/components/AppShelf/AppShelfMenu.tsx b/components/AppShelf/AppShelfMenu.tsx index 8a3b5b1fb..801d5d4ed 100644 --- a/components/AppShelf/AppShelfMenu.tsx +++ b/components/AppShelf/AppShelfMenu.tsx @@ -5,11 +5,13 @@ import { Check, Edit, Trash } from 'tabler-icons-react'; export default function AppShelfMenu(props: any) { const { name, removeitem: removeItem } = props; return ( - + Settings setOpened(false)} opened={opened} target={day} - children={} - /> + > + + diff --git a/components/calendar/MediaDisplay.tsx b/components/calendar/MediaDisplay.tsx index 7fc11db29..e34667630 100644 --- a/components/calendar/MediaDisplay.tsx +++ b/components/calendar/MediaDisplay.tsx @@ -1,4 +1,4 @@ -import { Stack, Paper, Image, Group, Title, Badge, Text } from '@mantine/core'; +import { Stack, Image, Group, Title, Badge, Text } from '@mantine/core'; export interface IMedia { id: string; diff --git a/components/layout/Footer.tsx b/components/layout/Footer.tsx index 4a160ae20..6683ec8e7 100644 --- a/components/layout/Footer.tsx +++ b/components/layout/Footer.tsx @@ -1,7 +1,6 @@ import React from 'react'; import { createStyles, Anchor, Text, Group, ActionIcon } from '@mantine/core'; -import { BrandGithub, Phone, BrandGmail } from 'tabler-icons-react'; -import { posix } from 'path'; +import { BrandGithub } from 'tabler-icons-react'; const useStyles = createStyles((theme) => ({ footer: { diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx index ba127cd01..164f3c352 100644 --- a/components/layout/Header.tsx +++ b/components/layout/Header.tsx @@ -5,9 +5,6 @@ import { Container, Group, Burger, - Paper, - Transition, - Aside, Drawer, Center, } from '@mantine/core'; @@ -15,7 +12,6 @@ import { useBooleanToggle } from '@mantine/hooks'; import { NextLink } from '@mantine/next'; import { Logo } from './Logo'; import { ColorSchemeToggle } from '../ColorSchemeToggle/ColorSchemeToggle'; -import SaveConfigComponent from '../Config/SaveConfig'; import { SettingsMenuButton } from '../Settings/SettingsMenu'; import CalendarComponent from '../calendar/CalendarComponent'; diff --git a/components/layout/Layout.tsx b/components/layout/Layout.tsx index 7591bd5bd..a60e6ca08 100644 --- a/components/layout/Layout.tsx +++ b/components/layout/Layout.tsx @@ -17,7 +17,7 @@ export default function Layout({ children, style }: any) {