Changed comment to conform to the updates.

Signed-off-by: Mehmet Mallı <mehmet.malli@trendyol.com>
Signed-off-by: Mehmet Mallı <mallimehmet@gmail.com>
Signed-off-by: Mehmet Mallı <mehmet.malli@trendyol.com>
This commit is contained in:
Mehmet Mallı
2022-04-25 18:31:45 +03:00
parent 41d677570d
commit a90d6ee675
@@ -28,14 +28,15 @@ import pluralize from 'pluralize';
* @public
* @remarks
*
* Shown as SnackBar at the top of the page
* Shown as SnackBar at the center top of the page by default. Configurable with props.
*/
// TODO: improve on this and promote to a shared component for use by all apps.
type Props = {
vertical?: 'top' | 'bottom';
horizontal?: 'left' | 'center' | 'right';
}
};
export function AlertDisplay(props: Props) {
const [messages, setMessages] = useState<Array<AlertMessage>>([]);
@@ -64,7 +65,7 @@ export function AlertDisplay(props: Props) {
};
return (
<Snackbar open anchorOrigin={{ vertical, horizontal}}>
<Snackbar open anchorOrigin={{ vertical, horizontal }}>
<Alert
action={
<IconButton