diff options
| author | Dhravya Shah <[email protected]> | 2024-07-23 23:49:30 -0500 |
|---|---|---|
| committer | Dhravya Shah <[email protected]> | 2024-07-23 23:49:30 -0500 |
| commit | 72de7bc81d18dfe78bd340d1ba1b48842a240e0d (patch) | |
| tree | 6b12f93daaf73392d8e631d557cfb0a4dc3e0194 /apps/web | |
| parent | Update apps/web/app/(dash)/home/page.tsx (diff) | |
| download | supermemory-72de7bc81d18dfe78bd340d1ba1b48842a240e0d.tar.xz supermemory-72de7bc81d18dfe78bd340d1ba1b48842a240e0d.zip | |
fix
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/app/(dash)/home/page.tsx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/apps/web/app/(dash)/home/page.tsx b/apps/web/app/(dash)/home/page.tsx index d284ce68..dfcac577 100644 --- a/apps/web/app/(dash)/home/page.tsx +++ b/apps/web/app/(dash)/home/page.tsx @@ -29,21 +29,13 @@ const slap = { }; function Page({ searchParams }: { searchParams: Record<string, string> }) { - - const query = searchParams.q || ""; - const [queryPresent, setQueryPresent] = useState<boolean>(false); - - const [telegramUser, setTelegramUser] = useState<string | undefined>( - searchParams.telegramUser as string, - ); - const [extensionInstalled, setExtensionInstalled] = useState< - string | undefined - >(searchParams.extension as string); - - const { push } = useRouter(); + const telegramUser = searchParams.telegramUser; + const extensionInstalled = searchParams.extension; + const [query, setQuery] = useState(searchParams.q || ""); const [spaces, setSpaces] = useState<{ id: number; name: string }[]>([]); + const { push } = useRouter(); useEffect(() => { if (telegramUser) { @@ -120,8 +112,7 @@ function Page({ searchParams }: { searchParams: Record<string, string> }) { initialSpaces={spaces} /> - <History setQuery={setQuery}/> - ``` + <History setQuery={setQuery} /> </div> <div className="w-full fixed bottom-0 left-0 p-4"> |