feat: show verified/unverified badge on site cards
This commit is contained in:
@@ -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',
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user