mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-08 00:44:22 +00:00
Migrate account settings
This commit is contained in:
23
app/src/types/settings.ts
Normal file
23
app/src/types/settings.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
export enum SettingsActionType {
|
||||
INIT_SETTINGS = 'INIT_SETTINGS',
|
||||
UPDATE_LOCAL_SETTINGS = 'UPDATE_LOCAL_SETTINGS',
|
||||
MARK_SAVED = 'MARK_SAVED',
|
||||
}
|
||||
|
||||
export interface UserProfileSettings {
|
||||
displayName?: string;
|
||||
email?: string;
|
||||
currentPassword?: string;
|
||||
newPassword?: string;
|
||||
}
|
||||
|
||||
export interface ProfileSettingsState {
|
||||
localSettings: UserProfileSettings;
|
||||
initialSettings: UserProfileSettings;
|
||||
hasUnsavedChanges: boolean;
|
||||
}
|
||||
|
||||
export interface SettingsAction<T> {
|
||||
type: SettingsActionType;
|
||||
payload?: T;
|
||||
}
|
||||
Reference in New Issue
Block a user