feat(WEB-170): edit profile view

This commit is contained in:
Simon Emanuelsson
2024-04-11 18:51:38 +02:00
parent 82e4d40203
commit 9396b2c3d5
114 changed files with 3642 additions and 2171 deletions

23
stores/edit-profile.ts Normal file
View File

@@ -0,0 +1,23 @@
import { create } from "zustand"
interface EditProfileState {
pending: boolean
valid: boolean
}
interface EditProfileActions {
setIsPending: (isPending: boolean) => void
setValid: (isValid: boolean) => void
}
export interface EditProfileStore
extends EditProfileActions,
EditProfileState {}
export const useProfileStore = create<EditProfileStore>()((set) => ({
pending: false,
valid: true,
setIsPending: (isPending) => set(() => ({ pending: isPending })),
setValid: (isValid) => set(() => ({ valid: isValid })),
}))