style: update home page
This commit is contained in:
parent
6c734f2d19
commit
92be324186
1 changed files with 13 additions and 2 deletions
|
@ -4,10 +4,21 @@ import Calendar from '@/components/calendar';
|
|||
import { useGetApiUserMe } from '@/generated/api/user/user';
|
||||
|
||||
export default function Home() {
|
||||
const { data } = useGetApiUserMe();
|
||||
const { data, isLoading } = useGetApiUserMe();
|
||||
|
||||
return (
|
||||
<div className='max-h-full flex justify-center items-center'>
|
||||
<div className='grid grid-cols-1 w-full place-items-center'>
|
||||
<div className='w-full sm:w-[90%] mb-4'>
|
||||
<h1 className='text-2xl font-bold text-center'>
|
||||
Welcome, <wbr />
|
||||
<span style={{ whiteSpace: 'nowrap' }}>
|
||||
{isLoading
|
||||
? 'Loading...'
|
||||
: data?.data.user?.first_name || 'Unknown User'}{' '}
|
||||
👋
|
||||
</span>
|
||||
</h1>
|
||||
</div>
|
||||
<div className='w-full sm:w-[90%]'>
|
||||
<Calendar
|
||||
userId={data?.data.user?.id}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue