mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-16 13:46:16 +02:00
Global alert
This commit is contained in:
@ -12,7 +12,7 @@ export { useAPIDelete } from "api/delete";
|
||||
export { useAPIPatch } from "api/patch";
|
||||
|
||||
// Bootstrap
|
||||
export { Alert } from "bootstrap/Alert";
|
||||
export { Alert, ALERT_TYPES } from "bootstrap/Alert";
|
||||
export { Button } from "bootstrap/Button";
|
||||
export { CheckBox } from "bootstrap/CheckBox";
|
||||
export { DownloadButton } from "bootstrap/DownloadButton";
|
||||
@ -66,4 +66,8 @@ export {
|
||||
} from "validations";
|
||||
|
||||
// Alert context
|
||||
export { AlertContext, AlertContextProvider } from "alertContext/AlertContext";
|
||||
export { AlertContext, AlertContextProvider, useAlert } from "alertContext/AlertContext";
|
||||
|
||||
// Testing utilities
|
||||
export { mockJSONError } from "testUtils/network";
|
||||
export { mockSetAlert, mockDismissAlert } from "testUtils/alertContextMock";
|
||||
|
Reference in New Issue
Block a user