fix: align Notification interface between api.ts and types.ts
- Add 'read' field to Notification interface in api.ts - Remove duplicate Notification interface in candidate-dashboard.tsx - Import Notification type from api.ts to ensure consistency
This commit is contained in:
parent
218dd48777
commit
bf14357285
2 changed files with 2 additions and 11 deletions
|
|
@ -14,7 +14,7 @@ import {
|
|||
TableRow,
|
||||
} from "@/components/ui/table"
|
||||
import { mockNotifications } from "@/lib/mock-data"
|
||||
import { jobsApi, applicationsApi, transformApiJobToFrontend, notificationsApi } from "@/lib/api"
|
||||
import { jobsApi, applicationsApi, transformApiJobToFrontend, notificationsApi, Notification } from "@/lib/api"
|
||||
import { Job, ApplicationWithDetails } from "@/lib/types"
|
||||
import {
|
||||
Bell,
|
||||
|
|
@ -30,15 +30,6 @@ import { getCurrentUser } from "@/lib/auth"
|
|||
import { useTranslation } from "@/lib/i18n"
|
||||
import { useState, useEffect } from "react"
|
||||
|
||||
interface Notification {
|
||||
id: string;
|
||||
title: string;
|
||||
message: string;
|
||||
type: string;
|
||||
read: boolean;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export function CandidateDashboardContent() {
|
||||
const { t } = useTranslation()
|
||||
const user = getCurrentUser()
|
||||
|
|
|
|||
|
|
@ -613,7 +613,7 @@ export interface Notification {
|
|||
title: string;
|
||||
message: string;
|
||||
link?: string;
|
||||
readAt?: string;
|
||||
read: boolean;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue