lastIncident logic improve & index error msg

This commit is contained in:
lyc8503 committed 2023-10-20 02:08:56 +08:00
1 parent a0fb157ae1
commit 93c069c419
5 files changed
+42 -18

No files matched your search

+7 -5
View File
@@ -1,7 +1,5 @@
import { useState } from 'react';
import { Container, Group, Burger } from '@mantine/core';
import { useDisclosure } from '@mantine/hooks';
import { MantineLogo } from '@mantine/ds';
import { Container, Group, Text } from '@mantine/core';
import classes from '@/styles/Header.module.css';
const links = [
@@ -12,7 +10,6 @@ const links = [
];
export default function Header() {
const [opened, { toggle }] = useDisclosure(false);
const [active, setActive] = useState(links[0].link);
const items = links.map((link) => (
@@ -33,7 +30,12 @@ export default function Header() {
return (
<header className={classes.header}>
<Container size="md" className={classes.inner}>
<MantineLogo size={28} />
<div>
<a href='https://github.com/lyc8503/UptimeFlare' target='_blank'>
<Text size='xl' span>🕒</Text>
<Text size='xl' span fw={700} variant="gradient" gradient={{ from: 'blue', to: 'cyan', deg: 90 }}>UptimeFlare</Text>
</a>
</div>
<Group gap={5}>
{items}
</Group>