mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-29 19:06:24 +02:00
Add User Settings page with sidebar pattern and API key section
This commit is contained in:
parent
0d4d227c26
commit
34c9d24970
7 changed files with 390 additions and 2 deletions
|
|
@ -214,6 +214,10 @@ export function LayoutDataProvider({
|
|||
setIsAllSearchSpacesSheetOpen(true);
|
||||
}, []);
|
||||
|
||||
const handleUserSettings = useCallback(() => {
|
||||
router.push("/dashboard/user/settings");
|
||||
}, [router]);
|
||||
|
||||
const handleSearchSpaceSettings = useCallback(
|
||||
(id: number) => {
|
||||
router.push(`/dashboard/${id}/settings`);
|
||||
|
|
@ -396,6 +400,7 @@ export function LayoutDataProvider({
|
|||
onSettings={handleSettings}
|
||||
onManageMembers={handleManageMembers}
|
||||
onSeeAllSearchSpaces={handleSeeAllSearchSpaces}
|
||||
onUserSettings={handleUserSettings}
|
||||
onLogout={handleLogout}
|
||||
pageUsage={pageUsage}
|
||||
breadcrumb={breadcrumb}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue