Referral page, bug fixes, seed data, persona tiers
- New /refer page with share/copy/stats - Fixed modal z-index conflicts (z-50 → z-[60]) across forum, groups, souq, halal-monitor - Seed route: forum categories, marketplace listings, private groups - Mufti/Daie personas now available in Premium tier - Fixed referral share link: falahos.my/mobile/auth?ref=CODE - Fixed client-side persona access check for premium
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
Shield,
|
||||
TrendingUp,
|
||||
ExternalLink,
|
||||
Gift,
|
||||
} from "lucide-react";
|
||||
import PremiumBadge from "@/components/PremiumBadge";
|
||||
|
||||
@@ -36,7 +37,7 @@ export default function ProfilePage() {
|
||||
const [saveMessage, setSaveMessage] = useState("");
|
||||
|
||||
useEffect(() => {
|
||||
if (!loading && !token) router.push("/login");
|
||||
if (!loading && !token) router.push("/auth");
|
||||
}, [loading, token, router]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -101,7 +102,7 @@ export default function ProfilePage() {
|
||||
|
||||
const handleLogout = () => {
|
||||
logout();
|
||||
router.push("/login");
|
||||
router.push("/auth");
|
||||
};
|
||||
|
||||
if (loading) {
|
||||
@@ -413,6 +414,18 @@ export default function ProfilePage() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Refer & Earn */}
|
||||
<Link
|
||||
href="/refer"
|
||||
className="w-full flex items-center justify-between py-3.5 px-5 rounded-xl bg-[#D4AF37]/10 border border-[#D4AF37]/20 text-[#D4AF37] active:bg-[#D4AF37]/20 transition min-h-[48px]"
|
||||
>
|
||||
<div className="flex items-center gap-2">
|
||||
<Gift size={16} />
|
||||
<span className="text-sm font-medium">Refer & Earn FLH</span>
|
||||
</div>
|
||||
<ChevronRight size={16} />
|
||||
</Link>
|
||||
|
||||
{/* Logout */}
|
||||
<button
|
||||
onClick={handleLogout}
|
||||
|
||||
Reference in New Issue
Block a user