mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
- Introduced `MorePagesDialog` and `MorePagesContent` components to manage and display tasks for earning additional pages. - Integrated dialog state management using `morePagesDialogAtom`. - Updated `LayoutDataProvider` to include the new dialog and handle task completion logic. - Enhanced `PageUsageDisplay` to trigger the More Pages dialog, improving user interaction for page management.
25 lines
554 B
TypeScript
25 lines
554 B
TypeScript
import { atom } from "jotai";
|
|
|
|
export interface SearchSpaceSettingsDialogState {
|
|
open: boolean;
|
|
initialTab: string;
|
|
}
|
|
|
|
export interface UserSettingsDialogState {
|
|
open: boolean;
|
|
initialTab: string;
|
|
}
|
|
|
|
export const searchSpaceSettingsDialogAtom = atom<SearchSpaceSettingsDialogState>({
|
|
open: false,
|
|
initialTab: "general",
|
|
});
|
|
|
|
export const userSettingsDialogAtom = atom<UserSettingsDialogState>({
|
|
open: false,
|
|
initialTab: "profile",
|
|
});
|
|
|
|
export const teamDialogAtom = atom<boolean>(false);
|
|
|
|
export const morePagesDialogAtom = atom<boolean>(false);
|