File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,22 @@ export const useIsNavigating = create<NavigationProps>((set) => ({
1111 setIsNavigation : ( isNavigating ) => set ( { isNavigating } ) ,
1212} ) ) ;
1313
14+ interface DashboardStore {
15+ entityDetails : any ;
16+ userDetails : any ;
17+ setEntityDetails : ( data : any ) => void ;
18+ setUserDetails : ( data : any ) => void ;
19+ allEntityDetails : any ;
20+ setAllEntityDetails : ( data : any ) => void ;
21+ }
22+
23+ export const useDashboardStore = create < DashboardStore > ( ( set ) => ( {
24+ entityDetails : null ,
25+ userDetails : null ,
26+ setEntityDetails : ( data ) => set ( { entityDetails : data } ) ,
27+ setUserDetails : ( data ) => set ( { userDetails : data } ) ,
28+ allEntityDetails : null ,
29+ setAllEntityDetails : ( data ) => set ( { allEntityDetails : data } ) ,
30+ } ) ) ;
31+
1432export { shallow } ;
You can’t perform that action at this time.
0 commit comments