diff --git a/apps/climatemappedafrica/src/components/Footer/index.js b/apps/climatemappedafrica/src/components/Footer/index.js deleted file mode 100644 index ce8464e68..000000000 --- a/apps/climatemappedafrica/src/components/Footer/index.js +++ /dev/null @@ -1,136 +0,0 @@ -/* eslint-disable react/default-props-match-prop-types */ - -import { - StayInTouch, - QuickLinks, - RichTypography, - LogoButton, - Copyright, -} from "@commons-ui/core"; -import { Grid } from "@mui/material"; -import PropTypes from "prop-types"; -import React from "react"; - -import useStyles from "./useStyles"; - -import Link from "@/climatemappedafrica/components/Link"; -import Section from "@/climatemappedafrica/components/Section"; - -function Footer({ - title, - logoProps, - aboutVariant, - description, - copyrightProps, - quickLinks: quickLinksProp, - socialMedia, - ...props -}) { - const classes = useStyles(props); - return ( -
-
- - - {logoProps && ( - - )} - - - {description && ( - - {description} - - )} - {copyrightProps && ( - - )} - - - - - {quickLinksProp && ( - - )} - - - {socialMedia && ( - - )} - - - - -
-
- ); -} - -Footer.propTypes = { - title: PropTypes.string, - description: PropTypes.string, - socialMedia: PropTypes.arrayOf(PropTypes.shape({})), - quickLinks: PropTypes.PropTypes.shape({}), - logoProps: PropTypes.shape({ - src: PropTypes.string, - alt: PropTypes.string, - href: PropTypes.string, - }), - aboutVariant: PropTypes.string, - copyrightProps: PropTypes.shape({}), -}; - -Footer.defaultProps = { - title: undefined, - description: undefined, - socialMedia: undefined, - quickLinks: undefined, - copyrightProps: undefined, - logoProps: undefined, - aboutVariant: "subtitle1", -}; - -export default Footer; diff --git a/apps/climatemappedafrica/src/components/Footer/index.stories.js b/apps/climatemappedafrica/src/components/Footer/index.stories.js deleted file mode 100644 index fe046015d..000000000 --- a/apps/climatemappedafrica/src/components/Footer/index.stories.js +++ /dev/null @@ -1,64 +0,0 @@ -/* eslint-disable import/no-anonymous-default-export */ -import React from "react"; - -import Footer from "."; - -import { footerArgs } from "@/climatemappedafrica/config"; - -export default { - title: "Sections/Footer", - argTypes: { - title: { - control: { - type: "text", - }, - }, - socialMedia: { - control: { - type: "object", - }, - }, - quickLinks: { - control: { - type: "array", - }, - }, - description: { - control: { - type: "text", - }, - }, - aboutVariant: { - control: { - type: "select", - }, - options: ["subtitle1", "body1"], - }, - copyrightProps: { - control: { - type: "object", - }, - }, - logoProps: { - control: { - type: "object", - }, - }, - }, -}; - -function Template({ ...args }) { - return