Skip to content

Commit

Permalink
feat: Add RecentTransmissions component to display recent transmissio…
Browse files Browse the repository at this point in the history
…ns on the dashboard
  • Loading branch information
NebraskaCoder committed May 17, 2024
1 parent 2cdd881 commit e5fafcd
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/[locale]/(loggedIn)/RecentTransmissions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { useTranslations } from "next-intl";

import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";

const RecentTransmissions = () => {
const t = useTranslations("dashboard.recentTransmissions");

return (
<Card>
<CardHeader>
<CardTitle>{t("header")}</CardTitle>
</CardHeader>
<CardContent>
<p>{t("tempPlaceholder")}</p>
</CardContent>
</Card>
);
};

export default RecentTransmissions;
2 changes: 2 additions & 0 deletions app/[locale]/(loggedIn)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useTranslations } from "next-intl";

import SummaryList from "./SummaryList";
import RecentTransmissions from "./RecentTransmissions";

import H1 from "@/components/typography/H1";

Expand All @@ -17,6 +18,7 @@ export default function DashboardPage() {
<div className="flex flex-col gap-y-5">
<H1>{t("summary.header")}</H1>
<SummaryList />
<RecentTransmissions />
</div>
);
}
5 changes: 5 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"totalScannersScanLists": "Total Scanners / Scan Lists",
"totalDepartments": "Total Departments",
"totalTransmissions": "Total Transmissions"
},
"recentTransmissions": {
"header": "Recent Transmissions",
"noTransmissions": "No recent transmissions found!",
"tempPlaceholder": "Recent transmissions goes here..."
}
}
}

0 comments on commit e5fafcd

Please sign in to comment.