-
- Push Notifications
-
-
- Manage your push notification preferences
+ {/* Divider before Email Digest */}
+
+
+ {/* Email Digest Frequency */}
+
+
+ Email Digest Frequency
+
+
+ Choose how often you receive non-urgent email summaries
+
+ {/* Frequency Tabs */}
+
+ {frequencyOptions.map((option, index) => (
+
+ ))}
+
-
- {pushNotifications.map((item) => (
-
-
-
- {item.label}
-
-
- {item.description}
-
-
-
togglePushNotification(item.id)}
- />
-
- ))}
+ {/* Action Buttons */}
+
+
+
-
- {/* Save Button */}
-
-
-
>
);
}
diff --git a/src/components/settings/SettingsSidebar.tsx b/src/components/settings/SettingsSidebar.tsx
index b77d9a6..93abe5f 100644
--- a/src/components/settings/SettingsSidebar.tsx
+++ b/src/components/settings/SettingsSidebar.tsx
@@ -67,18 +67,15 @@ export function SettingsSidebar({
setProfileData({ name, title, avatarUrl });
} catch (err) {
console.error('Failed to fetch profile for sidebar:', err);
- // Keep session data as fallback
}
}, [session]);
- // Fetch profile on mount
useEffect(() => {
if (session) {
fetchProfile();
}
}, [session, fetchProfile]);
- // Listen for profile update events to refresh the sidebar
useEffect(() => {
const handleProfileUpdate = () => {
if (session) {
@@ -92,6 +89,8 @@ export function SettingsSidebar({
};
}, [session, fetchProfile]);
+ const isAgent = basePath === '/agent/settings';
+
const navItems: NavItem[] = [
{
label: 'Profile Settings',
@@ -99,7 +98,7 @@ export function SettingsSidebar({
icon: '/assets/icons/settings-profile-icon.svg',
},
{
- label: 'Password Security',
+ label: 'Change Password',
href: `${basePath}/password`,
icon: '/assets/icons/settings-lock-icon.svg',
},
@@ -113,10 +112,24 @@ export function SettingsSidebar({
href: `${basePath}/privacy`,
icon: '/assets/icons/settings-privacy-icon.svg',
},
+ ...(isAgent
+ ? [
+ {
+ label: 'Billings & Payments',
+ href: `${basePath}/billings`,
+ icon: '/assets/icons/settings-billing-icon.svg',
+ },
+ {
+ label: 'Add Testimonials',
+ href: `${basePath}/testimonials`,
+ icon: '/assets/icons/settings-testimonials-icon.svg',
+ },
+ ]
+ : []),
];
return (
-
+
{/* Profile Card */}
@@ -148,12 +161,12 @@ export function SettingsSidebar({
- {/* Categories Card */}
+ {/* Settings Navigation Card */}
- {/* Categories Header */}
+ {/* Settings Header */}
- Categories
+ Settings
+ {/* Page Title */}
+
+
+ Subscription & Payments
+
+
+ Manage Your billing cycles , upgrade your plan , or boost individual listings
+
+
+
+ {/* Annual Membership Plans */}
+
+
+ Annual Membership Plans
+
+
+ {/* Plan Card */}
+
+ {/* Best Value Ribbon */}
+
+
+
+ {/* Left Side - Plan Details */}
+
+ {/* Annual Subscription Badge */}
+
+
+ Annual Subscription
+
+
+
+ {/* Plan Name */}
+
+ Professional Annual Plan
+
+
+ {/* Plan Description */}
+
+ Complete solutions for real estate agents and lenders to grow their business.
+
+
+ {/* Price */}
+
+ $499
+ /
+ Year
+
+
+ {/* CTA Button */}
+
+
+
+ {/* Right Side - Features + Illustration */}
+
+ {/* Features */}
+
+
+ Include Features
+
+
+
+ {PLAN_FEATURES.map((feature) => (
+
+
+
+ {feature.label}
+
+
+ ))}
+
+
+
+ {/* Illustration */}
+
+
+

+
+
+
+
+
+
+
+ {/* Need Help Section */}
+
+ {/* Left Side - Help Content */}
+
+ {/* Question Icon */}
+
+
+
+
+ {/* Title */}
+
+ Need Help ?
+
+
+ {/* Description */}
+
+ Our billing experts are here to help you with any questions about your plan.
+
+
+ {/* Support Email */}
+
+ support@example.com
+
↗
+
+
+
+ {/* Right Side - Illustration */}
+
+
+

+
+
+
+ >
+ );
+}
diff --git a/src/components/settings/index.ts b/src/components/settings/index.ts
index 8b36518..1493c3d 100644
--- a/src/components/settings/index.ts
+++ b/src/components/settings/index.ts
@@ -5,3 +5,4 @@ export { PasswordSecurityForm } from './PasswordSecurityForm';
export { NotificationsForm } from './NotificationsForm';
export { PrivacyForm } from './PrivacyForm';
export { TwoFactorSettings } from './TwoFactorSettings';
+export { SubscriptionForm } from './SubscriptionForm';