diff --git a/webui/src/components/banner.tsx b/webui/src/components/banner.tsx index ea2d1378c..f6696caf5 100644 --- a/webui/src/components/banner.tsx +++ b/webui/src/components/banner.tsx @@ -9,74 +9,48 @@ ********************************************************************************/ import React, { FunctionComponent, PropsWithChildren } from 'react'; -import { Box, Paper, Card, Grid, Button, Divider, CardActions, CardContent, Hidden, Collapse } from '@mui/material'; +import { Paper, Grid, Button, Collapse } from '@mui/material'; export const Banner: FunctionComponent> = props => { - const renderButtons = <> - - - - - ; - const cardColor = props.theme === 'dark' ? '#fff' : '#000'; const cardBackground = `${props.color}.${props.theme}`; return <> - - + - - - - {props.children} - - { - props.showDismissButton ? - - {renderButtons} - : null - } - - + + {props.children} + { - props.showDismissButton ? - <> - - - {renderButtons} - - - - -
- - : null + props.showDismissButton && + + + } - - - + ;