mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-20 11:28:47 +08:00
tos prompt (#1313)
* tos toast * finish ToS prompt Co-authored-by: Colin Megill <colinmegill@gmail.com>
This commit is contained in:
co-authored by
Colin Megill
parent
8fac40b6ae
commit
c8f98917c5
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user