|
|
|
|
@ -61,7 +61,7 @@ function Overview() {
|
|
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
|
const t = useLocale(locale);
|
|
|
|
|
|
|
|
|
|
const userInfo = useSelector((state: any) => state.userInfo || {});
|
|
|
|
|
const userInfo = useSelector((state: any) => state.user?.userInfo || {});
|
|
|
|
|
|
|
|
|
|
const fetchData = async () => {
|
|
|
|
|
setLoading(true);
|
|
|
|
|
@ -79,7 +79,7 @@ function Overview() {
|
|
|
|
|
<Card>
|
|
|
|
|
<Typography.Title heading={5}>
|
|
|
|
|
{t['workplace.welcomeBack']}
|
|
|
|
|
{userInfo.name}
|
|
|
|
|
{userInfo.username}
|
|
|
|
|
</Typography.Title>
|
|
|
|
|
<Divider />
|
|
|
|
|
<Row>
|
|
|
|
|
|