fix: Command Center TLD Pricing now links to /command/pricing/[tld]
Changed links from /tld-pricing/{tld} to /command/pricing/{tld}:
- onRowClick handler in PremiumTable
- Bell icon link in actions column
This ensures authenticated users stay in the Command Center
when navigating to TLD detail pages.
This commit is contained in:
@ -342,7 +342,7 @@ export default function TLDPricingPage() {
|
|||||||
data={sortedData}
|
data={sortedData}
|
||||||
keyExtractor={(tld) => tld.tld}
|
keyExtractor={(tld) => tld.tld}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
onRowClick={(tld) => window.location.href = `/tld-pricing/${tld.tld}`}
|
onRowClick={(tld) => window.location.href = `/command/pricing/${tld.tld}`}
|
||||||
emptyIcon={<Globe className="w-12 h-12 text-foreground-subtle" />}
|
emptyIcon={<Globe className="w-12 h-12 text-foreground-subtle" />}
|
||||||
emptyTitle="No TLDs found"
|
emptyTitle="No TLDs found"
|
||||||
emptyDescription={searchQuery ? `No TLDs matching "${searchQuery}"` : "Check back later for TLD data"}
|
emptyDescription={searchQuery ? `No TLDs matching "${searchQuery}"` : "Check back later for TLD data"}
|
||||||
@ -440,10 +440,10 @@ export default function TLDPricingPage() {
|
|||||||
render: (tld) => (
|
render: (tld) => (
|
||||||
<div className="flex items-center gap-1 justify-end">
|
<div className="flex items-center gap-1 justify-end">
|
||||||
<Link
|
<Link
|
||||||
href={`/tld-pricing/${tld.tld}`}
|
href={`/command/pricing/${tld.tld}`}
|
||||||
className="p-2 text-foreground-subtle hover:text-foreground hover:bg-foreground/5 rounded-lg transition-colors"
|
className="p-2 text-foreground-subtle hover:text-foreground hover:bg-foreground/5 rounded-lg transition-colors"
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
title="Set price alert"
|
title="View details"
|
||||||
>
|
>
|
||||||
<Bell className="w-4 h-4" />
|
<Bell className="w-4 h-4" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user