Browse Source

refactor(dashboard): Make AlertItem props readonly for better immutability

David Höck 9 months ago
parent
commit
25d56012f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/dashboard/src/lib/framework/alert/alert-item.tsx

+ 1 - 1
packages/dashboard/src/lib/framework/alert/alert-item.tsx

@@ -7,7 +7,7 @@ interface AlertItemProps extends ComponentProps<'div'> {
     alert: DashboardAlertDefinition;
 }
 
-export function AlertItem({ alert, className, ...props }: AlertItemProps) {
+export function AlertItem({ alert, className, ...props }: Readonly<AlertItemProps>) {
     const { data } = useQuery({
         queryKey: ['alert', alert.id],
         queryFn: () => alert.check(),