Created
January 28, 2020 15:35
-
-
Save shopifypartners/275f6fc039359ee2ea8cb45db27fcb0c to your computer and use it in GitHub Desktop.
Setting POS toast notices (with App Bridge)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const toastNoticeOptions = { | |
message: 'Product saved', | |
duration: 5000, | |
}; | |
const toastNotice = Toast.create(app, toastNoticeOptions); | |
const toastErrorOptions = { | |
message: 'Error saving', | |
duration: 5000, | |
isError: true, | |
}; | |
const toastError = Toast.create(app, toastErrorOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment