feat(notify): 쪽지함에 작업(task) 알림 유형 아이콘/색 추가
All checks were successful
build-and-push / build (push) Successful in 30s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
theorose49 2026-06-30 13:19:27 +09:00
parent 6bbdf4311d
commit 50fb1a1253

View File

@ -1,16 +1,16 @@
import { useNavigate } from "react-router-dom"; import { useNavigate } from "react-router-dom";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { Inbox as InboxIcon, FolderKanban, CalendarCheck, Coins, Wallet, CheckCheck } from "lucide-react"; import { Inbox as InboxIcon, FolderKanban, CalendarCheck, Coins, Wallet, CheckCheck, CheckSquare } from "lucide-react";
import { getNotifications, markNotificationRead, markAllNotificationsRead } from "@/lib/api"; import { getNotifications, markNotificationRead, markAllNotificationsRead } from "@/lib/api";
import { Card, Button, PageHeader, EmptyState, LoadingState } from "@/components/ui"; import { Card, Button, PageHeader, EmptyState, LoadingState } from "@/components/ui";
import { formatDateTime, classNames } from "@/lib/format"; import { formatDateTime, classNames } from "@/lib/format";
import type { Notification } from "@/types"; import type { Notification } from "@/types";
const ICON: Record<string, typeof FolderKanban> = { const ICON: Record<string, typeof FolderKanban> = {
project: FolderKanban, leave: CalendarCheck, overtime: CalendarCheck, incentive: Coins, settlement: Wallet, project: FolderKanban, task: CheckSquare, leave: CalendarCheck, overtime: CalendarCheck, incentive: Coins, settlement: Wallet,
}; };
const TINT: Record<string, string> = { const TINT: Record<string, string> = {
project: "#175CD3", leave: "#067647", overtime: "#B54708", incentive: "#5925DC", settlement: "#03143F", project: "#175CD3", task: "#7A5AF8", leave: "#067647", overtime: "#B54708", incentive: "#5925DC", settlement: "#03143F",
}; };
// 쪽지함: 프로젝트 추가·휴가/초과근무 승인·인센티브 반영/정산 등 본인 관련 이벤트. // 쪽지함: 프로젝트 추가·휴가/초과근무 승인·인센티브 반영/정산 등 본인 관련 이벤트.