mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
💃🏻 Typing, Styling, Formatting
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import { Group, Text, useMantineTheme, MantineTheme } from '@mantine/core';
|
||||
import { Group, Text, useMantineTheme } from '@mantine/core';
|
||||
import {
|
||||
IconUpload as Upload,
|
||||
IconPhoto as Photo,
|
||||
IconX as X,
|
||||
IconCheck as Check,
|
||||
TablerIcon,
|
||||
IconX,
|
||||
IconPhoto,
|
||||
IconUpload,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Group, Stack, Text, Title } from '@mantine/core';
|
||||
import { Group, Text, Title } from '@mantine/core';
|
||||
import dayjs from 'dayjs';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { IconClock as Clock } from '@tabler/icons';
|
||||
@@ -36,7 +36,7 @@ export default function DateComponent(props: any) {
|
||||
return (
|
||||
<Group p="sm" spacing="xs">
|
||||
<Title>{dayjs(date).format(formatString)}</Title>
|
||||
<Text size="xl">{dayjs(date).format('dddd, MMMM D')}</Text>
|
||||
<Text size="lg">{dayjs(date).format('dddd, MMMM D')}</Text>
|
||||
</Group>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,10 @@ export type ServiceType =
|
||||
| 'Sonarr'
|
||||
| 'Transmission';
|
||||
|
||||
export function tryMatchPort(name: string, form?: any) {
|
||||
export function tryMatchPort(name: string | undefined, form?: any) {
|
||||
if (!name) {
|
||||
return undefined;
|
||||
}
|
||||
// Match name with portmap key
|
||||
const port = portmap.find((p) => p.name === name.toLowerCase());
|
||||
if (form && port) {
|
||||
|
||||
Reference in New Issue
Block a user