Created
December 15, 2018 16:17
-
-
Save kofno/7a2a4578bdd5847dc567eec1a4fbdb25 to your computer and use it in GitHub Desktop.
Triggering Alerts
This file contains hidden or 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
import alertsStore from '../alerts/store'; | |
import { alert } from '../alerts/types'; | |
alertsStore.push(alert("Those aren't valid credentials!", 'error')); | |
alertsStore.push(alert("You've successfully logged in", 'success')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment