mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 05:38:51 +00:00
implement group page (#6)
* implement group page * group state, search box * rename some field * update api types
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user