Skip to content

Commit

Permalink
chore: fix typo & remove unnecessary semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
SliverKeigo authored and OXeu committed Jun 7, 2024
1 parent bfdc08d commit 5ef770c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Footer() {
</div>
</footer>
);
};
}

function ThemeButton({ current, mode, label, icon, onClick }: { current: ThemeMode, label: string, mode: ThemeMode, icon: string, onClick: (mode: ThemeMode) => void }) {
return (<button aria-label={label} type="button" onClick={() => onClick(mode)}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export function Header() {
)
}

function NavItem({ title, selected, herf }: { title: string, selected: boolean, herf: string }) {
function NavItem({ title, selected, href }: { title: string, selected: boolean, href: string }) {
return (
<Link href={herf} className={"cursor-pointer hover:text-theme duration-300 px-2 py-4 sm:p-4 text-sm " + (selected ? "text-theme" : "dark:text-white")} >
<Link href={href} className={"cursor-pointer hover:text-theme duration-300 px-2 py-4 sm:p-4 text-sm " + (selected ? "text-theme" : "dark:text-white")} >
{title}
</Link>
)
Expand Down

0 comments on commit 5ef770c

Please sign in to comment.