change structure config app
This commit is contained in:
@@ -4,13 +4,11 @@ import {useConfig} from "@witel/webapp-builder";
|
||||
const Banner = () => {
|
||||
const {config} = useConfig();
|
||||
const bannerHTML = config.banner;
|
||||
return (
|
||||
<Box sx={{backgroundColor: "primary.light"}}>
|
||||
<Container sx={{py: 0.7}} maxWidth="xl">
|
||||
<div dangerouslySetInnerHTML={{__html: bannerHTML}}/>
|
||||
</Container>
|
||||
</Box>
|
||||
);
|
||||
return (<Box sx={{backgroundColor: "primary.light"}}>
|
||||
{config.banner && config.banner !== "" && (<Container sx={{py: 0.7}} maxWidth="xl">
|
||||
<div dangerouslySetInnerHTML={{__html: bannerHTML}}/>
|
||||
</Container>)}
|
||||
</Box>);
|
||||
};
|
||||
|
||||
export default Banner;
|
||||
|
||||
Reference in New Issue
Block a user