From 201afa79db1d1bc6445d5a606a679823511baf7e Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Mon, 17 Jul 2023 01:21:39 +0200 Subject: [PATCH] Refactor --- src/widgets/dnshole/DnsHoleControls.tsx | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/widgets/dnshole/DnsHoleControls.tsx b/src/widgets/dnshole/DnsHoleControls.tsx index 751897b30..ee8190acb 100644 --- a/src/widgets/dnshole/DnsHoleControls.tsx +++ b/src/widgets/dnshole/DnsHoleControls.tsx @@ -1,4 +1,4 @@ -import { Badge, Box, Button, Card, Group, Image, Stack, Text, SimpleGrid, Space } from '@mantine/core'; +import { Badge, Box, Button, Card, Group, Image, Stack, Text, SimpleGrid } from '@mantine/core'; import { useElementSize } from '@mantine/hooks'; import { useTranslation } from 'next-i18next'; import { IconDeviceGamepad, IconPlayerPlay, IconPlayerStop } from '@tabler/icons-react'; @@ -43,8 +43,8 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) { } return ( - - 275)? 2 : 1 } verticalSpacing="0.25rem" spacing="0.25rem"> + + 275? 2 : 1 } verticalSpacing="0.25rem" spacing="0.25rem"> @@ -73,15 +71,13 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) { leftIcon={} variant="light" color="red" - style={{ - height:"2rem", - }} + h="2rem" > {t('disableAll')} - + {data.status.map((status, index) => { const app = config?.apps.find((x) => x.id === status.appId); @@ -103,7 +99,7 @@ function DnsHoleControlsWidgetTile({ widget }: DnsHoleControlsWidgetProps) { > - + {app.name}