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 authored and IfyNdu committed Aug 18, 2023
1 parent 6bc2c6f commit 3464bc0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"projects": {
"default": "igbo-api-bb22d",
"staging": "igbo-api-staging-99a67"
"default": "nkowaokwu-davydocsurg"
}
}
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 3464bc0

Please sign in to comment.