Skip to content

Commit

Permalink
fix(alerts provider): make plugin props optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Jul 15, 2024
1 parent 7c531f2 commit 187ff53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions services/alerts/src/AlertsProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { makeAlertsManager } from './makeAlertsManager'
import type { Alert, AlertsManager } from './types'

export const AlertsProvider = ({
plugin,
parentAlertsAdd,
showAlertsInPlugin,
children,
plugin = false,
parentAlertsAdd = undefined,
showAlertsInPlugin = false,
}: {
plugin: boolean
parentAlertsAdd: any
showAlertsInPlugin: boolean
children: React.ReactNode
plugin?: boolean
parentAlertsAdd?: any
showAlertsInPlugin?: boolean
}): ReactElement => {
const [alerts, setAlerts] = useState<Alert[]>([])
const [alertsManager] = useState<AlertsManager>(() =>
Expand Down

0 comments on commit 187ff53

Please sign in to comment.