changed prop type name

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:52:56 +03:00
parent f720944acd
commit b785ebfeb9
@@ -33,12 +33,12 @@ import pluralize from 'pluralize';
// TODO: improve on this and promote to a shared component for use by all apps.
type Props = {
export type AlertDisplayProps = {
vertical?: 'top' | 'bottom';
horizontal?: 'left' | 'center' | 'right';
};
export function AlertDisplay(props: Props) {
export function AlertDisplay(props: AlertDisplayProps) {
const [messages, setMessages] = useState<Array<AlertMessage>>([]);
const alertApi = useApi(alertApiRef);