MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / dismissAlert

Function dismissAlert

web/src/components/organization/billing-alerts.tsx:62–72  ·  view source on GitHub ↗
(alertId: string)

Source from the content-addressed store, hash-verified

60 }
61
62 const dismissAlert = async (alertId: string) => {
63 try {
64 await fetch(`/api/orgs/${organizationId}/alerts/${alertId}/dismiss`, {
65 method: 'POST',
66 })
67
68 setAlerts(alerts.filter((alert) => alert.id !== alertId))
69 } catch (error) {
70 console.error('Error dismissing alert:', error)
71 }
72 }
73
74 const getAlertIcon = (type: string, severity: string) => {
75 if (severity === 'critical') {

Callers 1

BillingAlertsFunction · 0.85

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected