Implemented ability to quickly add a user to a group

This commit is contained in:
Alvaro
2022-09-26 10:24:52 -06:00
committed by GitHub
parent 190cd9408b
commit 22bf3ebcc0
30 changed files with 855 additions and 70 deletions

View File

@@ -11,6 +11,7 @@ import { clearTimeoutIfNecessary } from '../util/clearTimeoutIfNecessary';
export type PropsType = {
autoDismissDisabled?: boolean;
children: ReactNode;
align?: 'left' | 'center';
className?: string;
disableCloseOnClick?: boolean;
onClose: () => unknown;
@@ -26,6 +27,7 @@ export const Toast = memo(
({
autoDismissDisabled = false,
children,
align = 'center',
className,
disableCloseOnClick = false,
onClose,
@@ -63,7 +65,7 @@ export const Toast = memo(
? createPortal(
<div
aria-live="assertive"
className={classNames('Toast', className)}
className={classNames('Toast', `Toast--align-${align}`, className)}
onClick={() => {
if (!disableCloseOnClick) {
onClose();