Skip to content

Commit

Permalink
Fixed Broken Links
Browse files Browse the repository at this point in the history
  • Loading branch information
promiseonuoha committed Nov 25, 2024
1 parent 503414c commit f6a7fcb
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/job-seeker/components/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const sidebarMenuLinks = {
],
bottom: [
{
path: '/job-seeker/help-center',
path: '#',
title: 'Help Center',
icon: ({ color, size }) => (
<svg
Expand Down
8 changes: 4 additions & 4 deletions app/job-seeker/dashboard/components/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function Progress({ hideMoreJobs, hideProgress }) {
<ProgressText
text="Upload your photo"
completed={!!user?.user_profile?.avatar}
path=""
path="/job-seeker/profile/edit"
/>
<ProgressText
text="Resume/CV"
Expand All @@ -79,7 +79,7 @@ export default function Progress({ hideMoreJobs, hideProgress }) {
0
)
}
path=""
path="/job-seeker/profile/edit"
/>
<ProgressText
text="Add Experience"
Expand All @@ -90,12 +90,12 @@ export default function Progress({ hideMoreJobs, hideProgress }) {
0
)
}
path=""
path="/job-seeker/profile/edit"
/>
<ProgressText
text="Add Website"
completed={!!user?.user_job_profile?.website}
path=""
path="/job-seeker/profile/edit"
/>
</div>
</div>
Expand Down
9 changes: 8 additions & 1 deletion app/job-seeker/settings/privacy/components/privacy-form.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
'use client'
import { Switch } from '@/components/ui/switch'
import Link from 'next/link'
import { usePathname } from 'next/navigation'

export default function PrivacyForm() {
const pathname = usePathname()
return (
<form className="w-full flex flex-col tablet:pt-5 pt-10">
<div className="w-full pb-10 border-b border-tremor-brand-boulder100 gap-44 tablet:gap-3.5 flex items-start">
Expand All @@ -26,7 +29,11 @@ export default function PrivacyForm() {
Enable/Disable 2-Factor Authentication
</p>
<Link
href="/job-seeker/settings"
href={
pathname.startsWith('/recruiter')
? '/recruiter/settings'
: '/job-seeker/settings'
}
className="text-tremor-background-darkYellow font-semibold text-sm leading-8">
Password reset option
</Link>
Expand Down
4 changes: 2 additions & 2 deletions app/recruiter/dashboard/components/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export default function Progress({ hideJobPosted, hideProgress }) {
<ProgressText
text="Upload your photo"
completed={!!user?.user_profile?.avatar}
path="/profile/edit"
path="/recruiter/profile/edit"
/>
<ProgressText
text="Add a Company"
completed={!!companies?.total > 0}
path="/recruiter/company/create"
path="/recruiter/companies/create"
/>
<ProgressText
text="Post a Job"
Expand Down
2 changes: 1 addition & 1 deletion app/recruiter/utilities/sidebar-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const sidebarMenuLinks = {
],
bottom: [
{
path: '/recruiter/help-center',
path: '#',
title: 'Help Center',
icon: ({ color, size }) => (
<svg
Expand Down
7 changes: 6 additions & 1 deletion components/application/guest-layout/profile-dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ export default function LoggedInProfileDropdown({ user, handleLogout }) {
title: 'Notifications',
description: 'Real-time job updates',
image: '/images/guest-layout/profile/bell.svg',
action: () => {},
action: () =>
router.push(
user?.user_mode === 'hire'
? '/recruiter/notifications'
: '/job-seeker/notifications',
),
}}
/>
<RenderMenu
Expand Down

0 comments on commit f6a7fcb

Please sign in to comment.