Commit 6de69f75 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'aalakkad-master-patch-53130' into 'master'

Update createAlert jsdocs

See merge request gitlab-org/gitlab!83813
parents 0e177b2a 7047d123
......@@ -94,10 +94,10 @@ const addDismissFlashClickListener = (flashEl, fadeTransition) => {
*
* 1. Render a new alert
*
* import { createAlert, ALERT_VARIANTS } from '~/flash';
* import { createAlert, VARIANT_WARNING } from '~/flash';
*
* createAlert({ message: 'My error message' });
* createAlert({ message: 'My warning message', variant: ALERT_VARIANTS.WARNING });
* createAlert({ message: 'My warning message', variant: VARIANT_WARNING });
*
* 2. Dismiss this alert programmatically
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment