Skip to content

Commit

Permalink
chore: add User info component nkowaokwu#619
Browse files Browse the repository at this point in the history
  • Loading branch information
davydocsurg committed Jul 11, 2023
1 parent f97d446 commit 0bc60d0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/pages/components/UserInformation/UserInfo.js
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;
3 changes: 3 additions & 0 deletions src/pages/components/UserInformation/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import UserInfo from './UserInfo';

export default UserInfo;
17 changes: 16 additions & 1 deletion src/pages/dashboard.js
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;

0 comments on commit 0bc60d0

Please sign in to comment.