diff --git a/modules/app/components/PageLoadingPlaceholder.tsx b/modules/app/components/PageLoadingPlaceholder.tsx index 075115e38..7afba4701 100644 --- a/modules/app/components/PageLoadingPlaceholder.tsx +++ b/modules/app/components/PageLoadingPlaceholder.tsx @@ -5,15 +5,11 @@ import SidebarLayout from 'modules/app/components/layout/layouts/Sidebar'; type Props = { sidebar?: boolean; - shortenFooter?: boolean; }; -export default function PageLoadingPlaceholder({ - sidebar = true, - shortenFooter = true -}: Props): React.ReactElement { +export default function PageLoadingPlaceholder({ sidebar = true }: Props): React.ReactElement { return ( - + diff --git a/modules/app/components/layout/Footer/LongFooter.tsx b/modules/app/components/layout/Footer/LongFooter.tsx deleted file mode 100644 index f3ab8bc37..000000000 --- a/modules/app/components/layout/Footer/LongFooter.tsx +++ /dev/null @@ -1,191 +0,0 @@ -import { Flex, Grid, Box, Container } from 'theme-ui'; -import { Icon } from '@makerdao/dai-ui-icons'; -import { ExternalLink } from 'modules/app/components/ExternalLink'; -import React from 'react'; -import { translate } from '@makerdao/i18n-helper'; - -export default function LongFooter({ locale = 'en' }: { locale?: string }): React.ReactElement { - const t = text => translate(text, locale); - - const links = [ - { - header: t('Resources'), - list: [ - { - url: 'https://makerdao.com/whitepaper', - title: t('Whitepaper') - }, - { - url: 'https://awesome.makerdao.com/#faqs', - title: t('FAQs') - }, - { - url: '/terms', - title: t('Terms') - }, - { - url: '/cookies-policy', - title: 'Cookies policy' - }, - { - url: 'https://www.notion.so/makerdao/Maker-Brand-ac517c82ff9a43089d0db5bb2ee045a4', - title: t('Brand Assets') - }, - { - url: 'https://makerdao.com/en/feeds/', - title: t('Feeds') - }, - { - url: 'https://makerdao.statuspage.io/', - title: t('Service Status') - } - ] - }, - { - header: t('Products'), - list: [ - { - url: 'https://oasis.app/', - title: t('Whitepaper') - }, - { - url: 'https://migrate.makerdao.com/', - title: t('Migrate') - }, - { - url: 'https://makerdao.com/en/ecosystem/', - title: t('Ecosystem') - }, - { - url: 'https://makerdao.com/en/governance/', - title: t('Governance') - } - ] - }, - { - header: t('Developers'), - list: [ - { - url: 'https://docs.makerdao.com/', - title: t('Documentation') - }, - { - url: 'https://github.com/makerdao/developerguides', - title: 'Developer Guides' - }, - { - url: '/api-docs', - title: 'API Docs' - } - ] - }, - { - header: 'Contact', - list: [ - { - url: 'https://discord.gg/2sWcgCDWCX', - title: 'Support' - } - ] - } - ]; - - return ( - - - {links.map(group => ( -
- - {group.header} - - - {group.list.map(link => ( -
  • - - {link.title} - -
  • - ))} -
    -
    - ))} - - - - - - - - - - - - - - - - - - - - -
    -
    - ); -} diff --git a/modules/app/components/layout/Footer/ShortFooter.tsx b/modules/app/components/layout/Footer/ShortFooter.tsx deleted file mode 100644 index b244e48eb..000000000 --- a/modules/app/components/layout/Footer/ShortFooter.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import React from 'react'; -import { NavLink } from 'theme-ui'; - -export default function ShortFooter(): React.ReactElement { - return ( -
    - - Terms - - - Status - - - API Docs - - - Support - -
    -
    © {new Date().getFullYear()} Maker
    -
    - ); -} diff --git a/modules/app/components/layout/Footer/index.tsx b/modules/app/components/layout/Footer/index.tsx deleted file mode 100644 index dcca97eea..000000000 --- a/modules/app/components/layout/Footer/index.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import ShortFooter from './ShortFooter'; -import LandingFooter from 'modules/home/components/LandingFooter'; - -export default function Footer({ shorten = false }: { shorten: boolean }): React.ReactElement { - if (shorten) { - return ; - } else { - return ; - } -} diff --git a/modules/app/components/layout/layouts/Primary.tsx b/modules/app/components/layout/layouts/Primary.tsx index 84ac1b1cc..217cb4039 100644 --- a/modules/app/components/layout/layouts/Primary.tsx +++ b/modules/app/components/layout/layouts/Primary.tsx @@ -1,17 +1,14 @@ import { Box, Flex, ThemeUIStyleObject } from 'theme-ui'; - import { fadeIn } from 'lib/keyframes'; -import Footer from '../Footer'; +import Footer from 'modules/home/components/Footer'; type Props = { - shortenFooter?: boolean; fade?: boolean; sx?: ThemeUIStyleObject; }; const PrimaryLayout = ({ children, - shortenFooter = false, fade = true, ...props }: React.PropsWithChildren): React.ReactElement => { @@ -29,7 +26,7 @@ const PrimaryLayout = ({ {children} -