🎨 Format codebase

This commit is contained in:
ajnart
2023-03-03 12:40:49 +09:00
parent 68cea4b6a8
commit 457e9cf2bd
14 changed files with 86 additions and 53 deletions

View File

@@ -25,7 +25,7 @@ const definition = defineWidget({
component: DateTile,
});
export type IDateWidget = IWidget<typeof definition['id'], typeof definition>;
export type IDateWidget = IWidget<(typeof definition)['id'], typeof definition>;
interface DateTileProps {
widget: IDateWidget;

View File

@@ -43,7 +43,7 @@ function IFrameTile({ widget }: IFrameTileProps) {
<IconUnlink size={36} strokeWidth={1.2} />
<Stack align="center" spacing={0}>
<Title order={6} align="center">
{t('card.errors.noUrl.title')}
{t('card.errors.noUrl.title')}
</Title>
<Text align="center" maw={200}>
{t('card.errors.noUrl.text')}

View File

@@ -107,7 +107,9 @@ export const DetailCollapseable = ({ session }: { session: GenericSessionInfo })
</Group>
<Text>{session.sessionName}</Text>
</Flex>
{details.length > 0 && <Divider label="Stats for nerds" labelPosition="center" mt="lg" mb="sm" />}
{details.length > 0 && (
<Divider label="Stats for nerds" labelPosition="center" mt="lg" mb="sm" />
)}
<Grid>
{details.map((detail, index) => (
<Grid.Col xs={12} sm={6} key={index}>

View File

@@ -46,7 +46,7 @@ const definition = defineWidget({
},
});
export type IUsenetWidget = IWidget<typeof definition['id'], typeof definition>;
export type IUsenetWidget = IWidget<(typeof definition)['id'], typeof definition>;
interface UseNetTileProps {
widget: IUsenetWidget;

View File

@@ -28,7 +28,7 @@ const definition = defineWidget({
component: WeatherTile,
});
export type IWeatherWidget = IWidget<typeof definition['id'], typeof definition>;
export type IWeatherWidget = IWidget<(typeof definition)['id'], typeof definition>;
interface WeatherTileProps {
widget: IWeatherWidget;