Skip to content

Commit

Permalink
feat: add global state for userprofile tabs section
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajwalism committed Jun 26, 2024
1 parent 6eabd0e commit dd7f34a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frontend/src/store/slices/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface CommonState {
showPromptDialog: boolean;
promptDialogContent: PromptDialogContentsType;
showMap: boolean;
userProfileActiveTab: number;
}

const initialState: CommonState = {
Expand All @@ -20,6 +21,7 @@ const initialState: CommonState = {
showPromptDialog: false,
promptDialogContent: null,
showMap: false,
userProfileActiveTab: 1,
};

const setCommonState: CaseReducer<
Expand Down

0 comments on commit dd7f34a

Please sign in to comment.