diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2024-03-14 19:29:29 -0400 |
| commit | c63738e17df4d5bfff2049a6d1c445c609c2189e (patch) | |
| tree | 5e64cdbcd49a3d6f7348cff8ad80a8eafb6dc83c /src/index.tsx | |
| parent | 71abdb2ee3f5bdb1e029c9f4266f4b797fa960f9 (diff) | |
fix: fix lots of type errors
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/index.tsx b/src/index.tsx index ff833cc..6fdf07e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,15 +1,14 @@ import { render } from 'preact'; -import { useEffect, useMemo } from 'preact/hooks'; +import { useMemo } from 'preact/hooks'; import { Router } from 'preact-router'; import PocketBase from 'pocketbase'; import { Pb } from './context.ts'; import { Home, SignUp, LogIn, ProjectsList } from './pages'; import NodeEditor from './NodeEditor.tsx'; -import { Header, Button } from './components'; import './index.css'; export const App = () => { - const pb = useMemo(() => new PocketBase(`/`)); + const pb = useMemo(() => new PocketBase(`/`), []); return ( <Pb.Provider value={pb}> <Router> |
