tos prompt (#1313)

* tos toast

* finish ToS prompt

Co-authored-by: Colin Megill <colinmegill@gmail.com>
This commit is contained in:
Bruce Martin
2020-03-28 22:31:19 -07:00
committed by GitHub
co-authored by Colin Megill
parent 8fac40b6ae
commit c8f98917c5
3 changed files with 91 additions and 0 deletions
@@ -7,6 +7,11 @@ const ToastTopCenter = Toaster.create({
position: Position.TOP
});
const ToastBottomCenter = Toaster.create({
className: "recipe-toaster",
position: Position.BOTTOM
});
/*
A "user" error - eg, bad input
*/
@@ -46,3 +51,11 @@ export const postAsyncFailureToast = message =>
timeout: 10000,
intent: Intent.WARNING
});
export const termsOfServiceToast = (message, _onDismiss) =>
ToastBottomCenter.show({
message,
timeout: 0,
intent: Intent.PRIMARY,
onDismiss: _onDismiss
});