diff --git a/components/AppShelf/AddAppShelfItem.tsx b/components/AppShelf/AddAppShelfItem.tsx
index 3627e8c1c..2ca82d4df 100644
--- a/components/AppShelf/AddAppShelfItem.tsx
+++ b/components/AppShelf/AddAppShelfItem.tsx
@@ -18,6 +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';
export default function AddItemShelfItem(props: any) {
const { addService } = useConfig();
@@ -34,30 +35,39 @@ export default function AddItemShelfItem(props: any) {
>
-
-
-
-
- setOpened(true)} size={60} />
-
- Add Service
+
+
+
+
+ Add a service
+
-
-
+
+
+
+
+ setOpened(true)} size={60} />
+
+
+
+
>
);
}
diff --git a/components/AppShelf/AppShelf.tsx b/components/AppShelf/AppShelf.tsx
index bf47a7c4c..118f1238c 100644
--- a/components/AppShelf/AppShelf.tsx
+++ b/components/AppShelf/AppShelf.tsx
@@ -17,14 +17,25 @@ import { useConfig } from '../../tools/state';
import { pingQbittorrent } from '../../tools/api';
import { serviceItem } from '../../tools/types';
-const useStyles = createStyles((theme) => ({
- main: {
- backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1],
- //TODO: #3 Fix this temporary fix and make the width and height dynamic / responsive
- width: 200,
- height: 180,
- },
-}));
+export function AppShelfItemWrapper(props: any) {
+ const { children, hovering } = props;
+ const theme = useMantineTheme();
+ return (
+
+ {children}
+
+ );
+}
const AppShelf = (props: any) => {
const { config, addService, removeService, setConfig } = useConfig();
@@ -58,7 +69,6 @@ export function AppShelfItem(props: any) {
const { service }: { service: serviceItem } = props;
const theme = useMantineTheme();
const { removeService } = useConfig();
- const { classes } = useStyles();
const [hovering, setHovering] = useState(false);
return (
-
+
@@ -128,7 +132,7 @@ export function AppShelfItem(props: any) {
-
+
);
}