Compare commits
2 Commits
c10e094ed4
...
ca5f2739db
| Author | SHA1 | Date | |
|---|---|---|---|
| ca5f2739db | |||
| ff67fded34 |
@ -49,7 +49,7 @@ interface Auction {
|
|||||||
age_years: number | null
|
age_years: number | null
|
||||||
tld: string
|
tld: string
|
||||||
affiliate_url: string
|
affiliate_url: string
|
||||||
valuation: AuctionValuation | null
|
valuation?: AuctionValuation | null
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Opportunity {
|
interface Opportunity {
|
||||||
|
|||||||
@ -682,17 +682,17 @@ export default function DashboardPage() {
|
|||||||
<Sparkles className="w-4 h-4" />
|
<Sparkles className="w-4 h-4" />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => handleToggleNotify(domain.id, domain.notify)}
|
onClick={() => handleToggleNotify(domain.id, domain.notify_on_available)}
|
||||||
disabled={togglingNotifyId === domain.id}
|
disabled={togglingNotifyId === domain.id}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
"p-2 rounded-lg transition-all",
|
"p-2 rounded-lg transition-all",
|
||||||
domain.notify
|
domain.notify_on_available
|
||||||
? "text-accent hover:text-accent-hover hover:bg-accent-muted"
|
? "text-accent hover:text-accent-hover hover:bg-accent-muted"
|
||||||
: "text-foreground-subtle hover:text-foreground hover:bg-background-tertiary"
|
: "text-foreground-subtle hover:text-foreground hover:bg-background-tertiary"
|
||||||
)}
|
)}
|
||||||
title={domain.notify ? "Notifications on" : "Notifications off"}
|
title={domain.notify_on_available ? "Notifications on" : "Notifications off"}
|
||||||
>
|
>
|
||||||
<Bell className={clsx("w-4 h-4", domain.notify && "fill-current", togglingNotifyId === domain.id && "animate-pulse")} />
|
<Bell className={clsx("w-4 h-4", domain.notify_on_available && "fill-current", togglingNotifyId === domain.id && "animate-pulse")} />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => handleRefresh(domain.id)}
|
onClick={() => handleRefresh(domain.id)}
|
||||||
|
|||||||
@ -151,3 +151,4 @@ export function Footer() {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ class ApiClient {
|
|||||||
return this.token
|
return this.token
|
||||||
}
|
}
|
||||||
|
|
||||||
private async request<T>(
|
protected async request<T>(
|
||||||
endpoint: string,
|
endpoint: string,
|
||||||
options: RequestInit = {}
|
options: RequestInit = {}
|
||||||
): Promise<T> {
|
): Promise<T> {
|
||||||
|
|||||||
Reference in New Issue
Block a user