format code and no semi

This commit is contained in:
lyc8503 committed 2023-11-06 00:51:41 +08:00
1 parent eba65bd654
commit 87611700c3
11 files changed
+135 -157

No files matched your search

+2 -8
View File
@@ -3,11 +3,7 @@ import classes from '@/styles/Header.module.css'
import config from '@/uptime.config'
export default function Header() {
const linkToElement = (link: {
label: string
link: string
highlight?: boolean
}) => {
const linkToElement = (link: { label: string; link: string; highlight?: boolean }) => {
return (
<a
key={link.label}
@@ -46,9 +42,7 @@ export default function Header() {
</Group>
<Group gap={5} hiddenFrom="sm">
{config.page.links
.filter((link) => link.highlight)
.map(linkToElement)}
{config.page.links.filter((link) => link.highlight).map(linkToElement)}
</Group>
</Container>
</header>