feat: show verified/unverified badge on site cards

This commit is contained in:
Usman Baig
2026-03-13 16:32:26 +01:00
parent 66a9ac1f31
commit 8f06c9168a
4 changed files with 26 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ export interface Site {
hide_unknown_locations?: boolean
// Data retention (months); 0 = keep forever
data_retention_months?: number
is_verified?: boolean
created_at: string
updated_at: string
}
@@ -91,3 +92,9 @@ export async function resetSiteData(id: string): Promise<void> {
method: 'POST',
})
}
export async function verifySite(id: string): Promise<void> {
await apiRequest(`/sites/${id}/verify`, {
method: 'POST',
})
}