mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
Move more into branding; proxy /images to backend (e.g., more overlays)
This commit is contained in:
@ -40,6 +40,11 @@ interface Props
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
Footer.defaultProps = {
|
||||
company: {href: "", name: ""},
|
||||
links: [],
|
||||
};
|
||||
|
||||
function Footer({company, links}: Props): JSX.Element
|
||||
{
|
||||
const {href, name} = company;
|
||||
@ -67,27 +72,30 @@ function Footer({company, links}: Props): JSX.Element
|
||||
position: "fixed", bottom: "0px", zIndex: -1, marginBottom: "10px",
|
||||
}}
|
||||
>
|
||||
<Box
|
||||
display="flex"
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
flexWrap="wrap"
|
||||
color="text"
|
||||
fontSize={size.sm}
|
||||
px={1.5}
|
||||
>
|
||||
©
|
||||
{" "}
|
||||
{new Date().getFullYear()}
|
||||
,
|
||||
<Link href={href} target="_blank">
|
||||
<MDTypography variant="button" fontWeight="medium">
|
||||
|
||||
{name}
|
||||
|
||||
</MDTypography>
|
||||
</Link>
|
||||
</Box>
|
||||
{
|
||||
href && name &&
|
||||
<Box
|
||||
display="flex"
|
||||
justifyContent="center"
|
||||
alignItems="center"
|
||||
flexWrap="wrap"
|
||||
color="text"
|
||||
fontSize={size.sm}
|
||||
px={1.5}
|
||||
>
|
||||
©
|
||||
{" "}
|
||||
{new Date().getFullYear()}
|
||||
,
|
||||
<Link href={href} target="_blank">
|
||||
<MDTypography variant="button" fontWeight="medium">
|
||||
|
||||
{name}
|
||||
|
||||
</MDTypography>
|
||||
</Link>
|
||||
</Box>
|
||||
}
|
||||
<Box
|
||||
component="ul"
|
||||
sx={({breakpoints}) => ({
|
||||
@ -111,10 +119,4 @@ function Footer({company, links}: Props): JSX.Element
|
||||
);
|
||||
}
|
||||
|
||||
// Declaring default props for Footer
|
||||
Footer.defaultProps = {
|
||||
company: {href: "https://www.nutrifreshservices.com/", name: "Nutrifresh Services"},
|
||||
links: [],
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
|
Reference in New Issue
Block a user