diff options
Diffstat (limited to 'frontend/src/pages/System')
-rw-r--r-- | frontend/src/pages/System/Announcements/table.tsx | 7 | ||||
-rw-r--r-- | frontend/src/pages/System/Backups/table.tsx | 7 | ||||
-rw-r--r-- | frontend/src/pages/System/Logs/index.tsx | 4 | ||||
-rw-r--r-- | frontend/src/pages/System/Releases/index.tsx | 4 | ||||
-rw-r--r-- | frontend/src/pages/System/Status/index.tsx | 9 | ||||
-rw-r--r-- | frontend/src/pages/System/Status/table.tsx | 7 | ||||
-rw-r--r-- | frontend/src/pages/System/Tasks/table.tsx | 7 |
7 files changed, 18 insertions, 27 deletions
diff --git a/frontend/src/pages/System/Announcements/table.tsx b/frontend/src/pages/System/Announcements/table.tsx index 74a160190..eb9b6e43c 100644 --- a/frontend/src/pages/System/Announcements/table.tsx +++ b/frontend/src/pages/System/Announcements/table.tsx @@ -1,7 +1,6 @@ import { useSystemAnnouncementsAddDismiss } from "@/apis/hooks"; import { SimpleTable } from "@/components"; import { MutateAction } from "@/components/async"; -import { useTableStyles } from "@/styles"; import { faWindowClose } from "@fortawesome/free-solid-svg-icons"; import { Anchor, Text } from "@mantine/core"; import { FunctionComponent, useMemo } from "react"; @@ -20,16 +19,14 @@ const Table: FunctionComponent<Props> = ({ announcements }) => { Header: "Since", accessor: "timestamp", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.primary}>{value}</Text>; + return <Text className="table-primary">{value}</Text>; }, }, { Header: "Announcement", accessor: "text", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.primary}>{value}</Text>; + return <Text className="table-primary">{value}</Text>; }, }, { diff --git a/frontend/src/pages/System/Backups/table.tsx b/frontend/src/pages/System/Backups/table.tsx index 4f9eeae44..42236cee5 100644 --- a/frontend/src/pages/System/Backups/table.tsx +++ b/frontend/src/pages/System/Backups/table.tsx @@ -1,7 +1,6 @@ import { useDeleteBackups, useRestoreBackups } from "@/apis/hooks"; import { Action, PageTable } from "@/components"; import { useModals } from "@/modules/modals"; -import { useTableStyles } from "@/styles"; import { Environment } from "@/utilities"; import { faHistory, faTrash } from "@fortawesome/free-solid-svg-icons"; import { Anchor, Text } from "@mantine/core"; @@ -32,16 +31,14 @@ const Table: FunctionComponent<Props> = ({ backups }) => { Header: "Size", accessor: "size", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.noWrap}>{value}</Text>; + return <Text className="table-no-wrap">{value}</Text>; }, }, { Header: "Time", accessor: "date", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.noWrap}>{value}</Text>; + return <Text className="table-no-wrap">{value}</Text>; }, }, { diff --git a/frontend/src/pages/System/Logs/index.tsx b/frontend/src/pages/System/Logs/index.tsx index d77e102d8..a232b8069 100644 --- a/frontend/src/pages/System/Logs/index.tsx +++ b/frontend/src/pages/System/Logs/index.tsx @@ -86,7 +86,7 @@ const SystemLogsView: FunctionComponent = () => { <Container fluid px={0}> <QueryOverlay result={logs}> <Toolbox> - <Group spacing="xs"> + <Group gap="xs"> <Toolbox.Button loading={isFetching} icon={faSync} @@ -108,7 +108,7 @@ const SystemLogsView: FunctionComponent = () => { loading={isLoading} icon={faFilter} onClick={openFilterModal} - rightIcon={ + rightSection={ suffix() !== "" ? ( <Badge size="xs" radius="sm"> {suffix()} diff --git a/frontend/src/pages/System/Releases/index.tsx b/frontend/src/pages/System/Releases/index.tsx index f205da086..66b5a1c8a 100644 --- a/frontend/src/pages/System/Releases/index.tsx +++ b/frontend/src/pages/System/Releases/index.tsx @@ -23,7 +23,7 @@ const SystemReleasesView: FunctionComponent = () => { return ( <Container size={600} py={12}> <QueryOverlay result={releases}> - <Stack spacing="lg"> + <Stack gap="lg"> {data?.map((v, idx) => ( <ReleaseCard key={BuildKey(idx, v.date)} {...v}></ReleaseCard> ))} @@ -47,7 +47,7 @@ const ReleaseCard: FunctionComponent<ReleaseInfo> = ({ return ( <Card shadow="md" p="lg"> <Group> - <Text weight="bold">{name}</Text> + <Text fw="bold">{name}</Text> <Badge color="blue">{date}</Badge> <Badge color={prerelease ? "yellow" : "green"}> {prerelease ? "Development" : "Master"} diff --git a/frontend/src/pages/System/Status/index.tsx b/frontend/src/pages/System/Status/index.tsx index 49c88ccd4..05996f7ad 100644 --- a/frontend/src/pages/System/Status/index.tsx +++ b/frontend/src/pages/System/Status/index.tsx @@ -46,7 +46,7 @@ function Row(props: InfoProps): JSX.Element { return ( <Grid columns={10}> <Grid.Col span={2}> - <Text size="sm" align="right" weight="bold"> + <Text size="sm" ta="right" fw="bold"> {title} </Text> </Grid.Col> @@ -85,9 +85,12 @@ const InfoContainer: FunctionComponent< return ( <Stack> <Divider - labelProps={{ size: "medium", weight: "bold" }} labelPosition="left" - label={title} + label={ + <Text size="md" fw="bold"> + {title} + </Text> + } ></Divider> {children} <Space /> diff --git a/frontend/src/pages/System/Status/table.tsx b/frontend/src/pages/System/Status/table.tsx index 3b8a87e8a..c139f9d93 100644 --- a/frontend/src/pages/System/Status/table.tsx +++ b/frontend/src/pages/System/Status/table.tsx @@ -1,5 +1,4 @@ import { SimpleTable } from "@/components"; -import { useTableStyles } from "@/styles"; import { Text } from "@mantine/core"; import { FunctionComponent, useMemo } from "react"; import { Column } from "react-table"; @@ -15,16 +14,14 @@ const Table: FunctionComponent<Props> = ({ health }) => { Header: "Object", accessor: "object", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.noWrap}>{value}</Text>; + return <Text className="table-no-wrap">{value}</Text>; }, }, { Header: "Issue", accessor: "issue", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.primary}>{value}</Text>; + return <Text className="table-primary">{value}</Text>; }, }, ], diff --git a/frontend/src/pages/System/Tasks/table.tsx b/frontend/src/pages/System/Tasks/table.tsx index ea45af49d..064438668 100644 --- a/frontend/src/pages/System/Tasks/table.tsx +++ b/frontend/src/pages/System/Tasks/table.tsx @@ -1,7 +1,6 @@ import { useRunTask } from "@/apis/hooks"; import { SimpleTable } from "@/components"; import MutateAction from "@/components/async/MutateAction"; -import { useTableStyles } from "@/styles"; import { faPlay } from "@fortawesome/free-solid-svg-icons"; import { Text } from "@mantine/core"; import { FunctionComponent, useMemo } from "react"; @@ -18,16 +17,14 @@ const Table: FunctionComponent<Props> = ({ tasks }) => { Header: "Name", accessor: "name", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.primary}>{value}</Text>; + return <Text className="table-primary">{value}</Text>; }, }, { Header: "Interval", accessor: "interval", Cell: ({ value }) => { - const { classes } = useTableStyles(); - return <Text className={classes.noWrap}>{value}</Text>; + return <Text className="table-no-wrap">{value}</Text>; }, }, { |