From f45053b1547a71cb3481543056c58336e1022da1 Mon Sep 17 00:00:00 2001 From: davydocsurg Date: Mon, 8 May 2023 10:34:42 +0100 Subject: [PATCH] chore: update User info component #619 --- .../components/UserInformation/UserInfo.js | 15 ++++---- src/pages/dashboard.js | 36 ++++++++++--------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/pages/components/UserInformation/UserInfo.js b/src/pages/components/UserInformation/UserInfo.js index 44bd1bae..04a80908 100644 --- a/src/pages/components/UserInformation/UserInfo.js +++ b/src/pages/components/UserInformation/UserInfo.js @@ -1,16 +1,13 @@ import { Heading } from '@chakra-ui/react'; import React from 'react'; -import Card from '../Card'; const UserInfo = () => ( - - Profile - +
+ User Information +

Name: David Ndubuisi

+

Email: davydocsurg@gmail.com

+

Total Daily Usage: 54

+
); export default UserInfo; diff --git a/src/pages/dashboard.js b/src/pages/dashboard.js index 98cf1363..60711740 100644 --- a/src/pages/dashboard.js +++ b/src/pages/dashboard.js @@ -1,21 +1,25 @@ -import { Heading } from '@chakra-ui/react'; import React from 'react'; +import { useTranslation } from 'react-i18next'; import UserInfo from './components/UserInformation'; +import Navbar from './components/Navbar'; -const Dashboard = () => ( -
- Dashboard - -
-); +const Dashboard = () => { + const { t } = useTranslation('dashboard'); + + return ( +
+ +
+
+

{t('Dashboard')}

+ +
+
+
+ ); +}; export default Dashboard;