mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 10:26:33 +02:00
- Introduced `TeamDialog` component to manage team members within a modal. - Created `TeamContent` component to encapsulate team management logic and UI. - Refactored `TeamManagementPage` to utilize the new `TeamContent` component, improving code organization. - Added `teamDialogAtom` for managing the open state of the team dialog. - Updated `LayoutDataProvider` to integrate the new team dialog functionality.
23 lines
496 B
TypeScript
23 lines
496 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);
|