Initial Commit
This commit is contained in:
commit
3331da8f22
72 changed files with 26119 additions and 0 deletions
18
frontend/src/components/dashboard/DashboardCard.tsx
Normal file
18
frontend/src/components/dashboard/DashboardCard.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import Col from "react-bootstrap/Col";
|
||||
import Card from "react-bootstrap/Card";
|
||||
import {ReactNode} from "react";
|
||||
|
||||
/**
|
||||
* Wrapper component for dashboard cards. Formats children into the card body
|
||||
*/
|
||||
export default function DashboardCard({children}: { children: ReactNode }) {
|
||||
return (
|
||||
<Col>
|
||||
<Card className="h-100">
|
||||
<Card.Body>
|
||||
{children}
|
||||
</Card.Body>
|
||||
</Card>
|
||||
</Col>
|
||||
)
|
||||
}
|
Reference in a new issue