Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Umer Farooq <[email protected]>
  • Loading branch information
lablnet committed Jan 26, 2024
1 parent d38a714 commit 17b4a53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { h } from 'preact';
import { useEffect, useState } from "preact/hooks";
import type { FunctionalComponent } from "preact";

export default function ThemeToggle(): FunctionalComponent {
const [theme, setTheme] = useState('light');
export default function ThemeToggle(): h.JSX.Element {
const [theme, setTheme] = useState('light');

const handleClick = () => {
console.log ("handle click", theme)
Expand Down

0 comments on commit 17b4a53

Please sign in to comment.