-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Brian54309/dashboard
fixed chartjs
- Loading branch information
Showing
3 changed files
with
43 additions
and
14 deletions.
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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import "./dashboard.css" | ||
import "./dashboard.css"; | ||
|
||
function Dashboard(){ | ||
return( | ||
<div className="dashboard"> | ||
<div className="dashboard-top"> | ||
Dashboard | ||
</div> | ||
<div className="dashboard-bot"> | ||
Dashboard | ||
</div> | ||
</div> | ||
) | ||
// eslint-disable-next-line react/prop-types | ||
function Dashboard({ dashboard, car }) { | ||
return ( | ||
<div className="dashboard"> | ||
{dashboard && ( | ||
<> | ||
<div className="dashboard-top">Dashboard</div> | ||
<div className="dashboard-bot">Dashboard</div> | ||
</> | ||
)} | ||
{car && ( | ||
<> | ||
<div className="dashboard-top">Cars</div> | ||
<div className="dashboard-bot">List Car</div> | ||
</> | ||
)} | ||
</div> | ||
); | ||
} | ||
|
||
export default Dashboard | ||
export default Dashboard; |
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
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