From 4d3afbb7918950af5e2220bccfb6e9cd1f6a6e67 Mon Sep 17 00:00:00 2001 From: Redbull Deployer Date: Sun, 1 Mar 2026 19:25:17 -0600 Subject: [PATCH] fix: use notify methods correctly from useNotify hook in JobCard --- frontend/src/components/job-card.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/job-card.tsx b/frontend/src/components/job-card.tsx index 74104cc..caa8905 100644 --- a/frontend/src/components/job-card.tsx +++ b/frontend/src/components/job-card.tsx @@ -46,7 +46,8 @@ interface JobCardProps { export function JobCard({ job, isApplied, applicationStatus }: JobCardProps) { const { t } = useTranslation(); const { user } = useAuth(); - const { notify } = useNotify(); + const notifications = useNotify(); + const handleShare = (platform: string) => { const url = typeof window !== "undefined" ? `${window.location.origin}/jobs/${job.id}` : `https://local.gohorsejobs.com/jobs/${job.id}`; const text = `Confira esta vaga: ${job.title} na ${job.company}`; @@ -66,7 +67,7 @@ export function JobCard({ job, isApplied, applicationStatus }: JobCardProps) { break; case 'copy': navigator.clipboard.writeText(url); - notify.success("Link copiado!", "Link da vaga copiado para a área de transferência."); + notifications.success("Link copiado!", "Link da vaga copiado para a área de transferência."); break; } }; @@ -183,7 +184,6 @@ export function JobCard({ job, isApplied, applicationStatus }: JobCardProps) { - {/* Job Meta Information */} {/* Job Meta Information */}