mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-27 01:03:43 +08:00
22 lines
505 B
TypeScript
22 lines
505 B
TypeScript
import React from 'react';
|
|
|
|
import { Container, Text } from '@chakra-ui/react';
|
|
|
|
import { useUserStore } from '../store/user-store';
|
|
|
|
|
|
const Dashboard: React.FC = () => {
|
|
const { user } = useUserStore();
|
|
|
|
return (
|
|
<>
|
|
<Container maxW='full' pt={12}>
|
|
<Text fontSize='2xl'>Hi, {user?.full_name || user?.email} 👋🏼</Text>
|
|
<Text>Welcome back, nice to see you again!</Text>
|
|
</Container>
|
|
</>
|
|
|
|
)
|
|
}
|
|
|
|
export default Dashboard; |