forked from nkowaokwu/igbo_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add User info component nkowaokwu#619
- Loading branch information
1 parent
a490d1e
commit 23f91a0
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Heading } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
import Card from '../Card'; | ||
|
||
const UserInfo = () => ( | ||
<Card | ||
title="User Information" | ||
description="This is your profile information" | ||
icon="👤" | ||
tooltipLabel="User Information" | ||
> | ||
<Heading as="h2">Profile</Heading> | ||
</Card> | ||
); | ||
|
||
export default UserInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import UserInfo from './UserInfo'; | ||
|
||
export default UserInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import { Heading } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
import UserInfo from './components/UserInformation'; | ||
|
||
const Dashboard = () => <Heading as="h1">Dashboard</Heading>; | ||
const Dashboard = () => ( | ||
<div | ||
className="flex flex-col items-center h-screen" | ||
// style={{ | ||
// display: 'flex', | ||
// flexDirection: 'column', | ||
// alignItems: 'center', | ||
// justifyContent: 'center', | ||
// height: '100vh', | ||
// }} | ||
> | ||
<Heading as="h1">Dashboard</Heading> | ||
<UserInfo /> | ||
</div> | ||
); | ||
|
||
export default Dashboard; |