implement group page (#6)

* implement group page

* group state, search box

* rename some field

* update api types
This commit is contained in:
UUBulb
2024-11-19 21:40:03 +08:00
committed by GitHub
parent 37a121559f
commit 2bf2639080
26 changed files with 1975 additions and 29 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { MainStore, ModelUser as User } from '@/types'
import { MainStore } from '@/types'
import { create } from 'zustand'
import { persist, createJSONStorage } from 'zustand/middleware'
@@ -6,7 +6,7 @@ export const useMainStore = create<MainStore, [['zustand/persist', MainStore]]>(
persist(
(set, get) => ({
profile: get()?.profile,
setProfile: (profile: User | undefined) => set({ profile }),
setProfile: profile => set({ profile }),
}),
{
name: 'mainStore',