Merge branch 'feature/mohammad_notification_landing_page' into 'develop'
Banner completed See merge request witel-front-end/loan-facilities/user!52
This commit is contained in:
16
src/components/first/Banner.jsx
Normal file
16
src/components/first/Banner.jsx
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import {Box, Container} from "@mui/material";
|
||||||
|
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Banner;
|
||||||
@@ -6,6 +6,7 @@ import FooterDetails from "@/components/first/FooterDetails";
|
|||||||
import HeaderDetails from "@/components/first/HeaderDetails";
|
import HeaderDetails from "@/components/first/HeaderDetails";
|
||||||
import LoanDescription from "@/components/first/LoanDescription";
|
import LoanDescription from "@/components/first/LoanDescription";
|
||||||
import {FullPageLayout} from "@witel/webapp-builder";
|
import {FullPageLayout} from "@witel/webapp-builder";
|
||||||
|
import Banner from "@/components/first/Banner";
|
||||||
|
|
||||||
const FirstComponent = () => {
|
const FirstComponent = () => {
|
||||||
const t = useTranslations();
|
const t = useTranslations();
|
||||||
@@ -14,6 +15,7 @@ const FirstComponent = () => {
|
|||||||
<FullPageLayout>
|
<FullPageLayout>
|
||||||
<Stack>
|
<Stack>
|
||||||
<HeaderDetails/>
|
<HeaderDetails/>
|
||||||
|
<Banner/>
|
||||||
<LoanRegister/>
|
<LoanRegister/>
|
||||||
<LoanDescription/>
|
<LoanDescription/>
|
||||||
<LoanCondition/>
|
<LoanCondition/>
|
||||||
|
|||||||
Reference in New Issue
Block a user