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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user