33import Link from 'next/link' ;
44import { Icon , Text } from 'opub-ui' ;
55
6- import { useDashboardStore } from '@/config/store' ;
76import BreadCrumbs from '@/components/BreadCrumbs' ;
87import { Icons } from '@/components/icons' ;
98import { Loading } from '@/components/loading' ;
9+ import { useDashboardStore } from '@/config/store' ;
1010
1111const UserDashboard = ( ) => {
1212 const { userDetails, allEntityDetails } = useDashboardStore ( ) ;
@@ -23,7 +23,6 @@ const UserDashboard = () => {
2323 } ,
2424 ] ;
2525
26-
2726 return (
2827 < >
2928 < BreadCrumbs
@@ -39,21 +38,23 @@ const UserDashboard = () => {
3938 { ! userDetails ?. me ? (
4039 < Loading />
4140 ) : (
42- < div className = "container mb-40 " >
41+ < div className = "flex-1 container mb-40 " >
4342 < div className = " flex flex-col gap-6 py-10" >
4443 < Text variant = "headingXl" > User Dashboard</ Text >
4544 </ div >
46- < div className = "flex flex-wrap items-center gap-6 md:flex-nowrap lg:flex-nowrap" >
47- { list . map ( ( item , index ) => (
48- < Link
49- key = { index }
50- href = { item . path }
51- className = " flex max-h-56 min-h-56 w-full flex-col items-center justify-center gap-3 rounded-4 bg-greyExtralight p-4 "
52- >
53- < Icon source = { item . icon } size = { 60 } color = "highlight" />
54- < Text variant = "headingLg" > { item . label } </ Text >
55- </ Link >
56- ) ) }
45+ < div className = "flex-1 " >
46+ < div className = "flex flex-wrap items-center gap-6 md:flex-nowrap lg:flex-nowrap" >
47+ { list . map ( ( item , index ) => (
48+ < Link
49+ key = { index }
50+ href = { item . path }
51+ className = " flex max-h-56 min-h-56 w-full flex-col items-center justify-center gap-3 rounded-4 bg-greyExtralight p-4 "
52+ >
53+ < Icon source = { item . icon } size = { 60 } color = "highlight" />
54+ < Text variant = "headingLg" > { item . label } </ Text >
55+ </ Link >
56+ ) ) }
57+ </ div >
5758 </ div >
5859 </ div >
5960 ) }
0 commit comments