Migration/AlertList: Migrates AlertList from AngularJS to React (#31872)

* Migration/AlertList: Migrates AlertList from AngularJS to React
This commit is contained in:
kay delaney
2021-03-11 14:53:13 +00:00
committed by GitHub
parent 93ead2a50c
commit 48d2dff987
10 changed files with 621 additions and 319 deletions

View File

@@ -280,11 +280,17 @@ const Tags: FC<ChildProps> = ({ children, styles }) => {
};
Tags.displayName = 'Tags';
const Figure: FC<ChildProps & { align?: 'top' | 'center' }> = ({ children, styles, align = 'top' }) => {
const Figure: FC<ChildProps & { align?: 'top' | 'center'; className?: string }> = ({
children,
styles,
align = 'top',
className,
}) => {
return (
<div
className={cx(
styles?.media,
className,
align === 'center' &&
css`
display: flex;