Refactor alerts to TypeScript, remove react-notification dependency (#34239)

This commit is contained in:
Eugen Rochko 2025-03-25 19:25:07 +01:00 committed by GitHub
parent e1dbbf6c9d
commit 94d71c992e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 171 additions and 121 deletions

View file

@ -0,0 +1,14 @@
import type { MessageDescriptor } from 'react-intl';
export type TranslatableString = string | MessageDescriptor;
export type TranslatableValues = Record<string, string | number | Date>;
export interface Alert {
key: number;
title?: TranslatableString;
message: TranslatableString;
action?: TranslatableString;
values?: TranslatableValues;
onClick?: () => void;
}