1
0
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:
Maciej Lenartowicz
2019-10-30 16:06:53 +00:00
parent 22b2bc9c09
commit 0915d477fe
15 changed files with 168 additions and 43 deletions

View File

@ -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";