This commit is contained in:
freedakgmail
2025-11-24 14:02:34 +08:00
parent b7a8c9ee6e
commit 3d075c6076
941 changed files with 25613 additions and 27641 deletions
+13 -2
View File
@@ -10,6 +10,7 @@ import { useDialog } from "@/components/ui/alert-dialog-custom"
import { requestNotificationPermission, checkUpcomingAnniversaries } from "@/lib/notifications"
import { useFamily } from "@/context/family-context"
import { Alert, AlertDescription } from "@/components/ui/alert"
import { MemberNameWithStatus } from "@/components/member-name-with-status"
export function NotificationSettings() {
const { showAlert } = useDialog()
@@ -162,7 +163,12 @@ export function NotificationSettings() {
className="flex items-center justify-between p-3 bg-muted/50 rounded-lg"
>
<div>
<p className="font-medium">{member.fullName}</p>
<p className="font-medium">
<MemberNameWithStatus
name={member.fullName}
isDead={!!member.deathDate}
/>
</p>
<p className="text-sm text-muted-foreground">
{new Date(member.birthDate).toLocaleDateString('zh-CN', {
month: 'long',
@@ -193,7 +199,12 @@ export function NotificationSettings() {
className="flex items-center justify-between p-3 bg-muted/50 rounded-lg"
>
<div>
<p className="font-medium">{member.fullName}</p>
<p className="font-medium">
<MemberNameWithStatus
name={member.fullName}
isDead={!!member.deathDate}
/>
</p>
<p className="text-sm text-muted-foreground">
{new Date(member.deathDate!).toLocaleDateString('zh-CN', {
month: 'long',