refactor: rename recipients route to people, update all frontend references
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { getI18n } from "@/i18n/server"
|
||||
import { AssetService } from "@/services/asset.service"
|
||||
import { ItemService } from "@/services/item.service"
|
||||
import { RecipientService } from "@/services/recipient.service"
|
||||
import { PersonService } from "@/services/person.service"
|
||||
|
||||
import Card from "./_components/card"
|
||||
|
||||
@@ -10,7 +10,7 @@ export default async function Home() {
|
||||
const copy = dictionary.dashboardHome
|
||||
const totalItems = await ItemService.findAllItemsCount()
|
||||
const totalAssets = await AssetService.findAllAssetsCount()
|
||||
const totalRecipients = await RecipientService.findAllRecipientsCount()
|
||||
const totalPeople = await PersonService.findAllPeopleCount()
|
||||
|
||||
return (
|
||||
<div className="container mx-auto p-4">
|
||||
@@ -65,10 +65,10 @@ export default async function Home() {
|
||||
}
|
||||
/>
|
||||
<Card
|
||||
title={copy.cards.recipients.title}
|
||||
total={totalRecipients}
|
||||
countLabel={copy.cards.recipients.countLabel}
|
||||
href="/recipients"
|
||||
title={copy.cards.people.title}
|
||||
total={totalPeople}
|
||||
countLabel={copy.cards.people.countLabel}
|
||||
href="/people"
|
||||
icon={
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
||||
Reference in New Issue
Block a user