revert readonly links

This commit is contained in:
Ayo 2023-09-29 12:36:08 +02:00
parent 72ffecc197
commit 4a9e6d9e35
2 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,7 @@ import Icon from "astro-iconify";
import type { Link } from "../constants/links";
export interface Props {
links: readonly Link[];
links: Link[];
}
let { links } = Astro.props;
@ -16,6 +16,7 @@ if (Astro.url.pathname !== "/") {
},
].concat(links);
}
---
<nav>

View file

@ -6,7 +6,7 @@ export type Link = {
};
const links: readonly Link[] = [
const links: Link[] = [
{
url: "https://ayos.blog",
icon: "blog",
@ -25,6 +25,6 @@ const links: readonly Link[] = [
icon: "npm",
set: "gg"
}
] as const;
];
export default links;