fix: destructure notify from useNotify to resolve compilation error in JobCard
This commit is contained in:
parent
f9994a48ae
commit
88c142952d
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ interface JobCardProps {
|
|||
export function JobCard({ job, isApplied, applicationStatus }: JobCardProps) {
|
||||
const { t } = useTranslation();
|
||||
const { user } = useAuth();
|
||||
const { notify } = 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}`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue