Skip to content

Commit

Permalink
removing footer and guide from layout component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakidxav committed Oct 15, 2024
1 parent 90fe717 commit b3c8500
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions components/view/layout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react'
import { useThemeUI, Container, Flex, Box } from 'theme-ui'
import { Dimmer, FadeIn, Footer, Guide, Scrollbar, Settings } from '@carbonplan/components'
import { Dimmer, FadeIn, Scrollbar, Settings } from '@carbonplan/components'
import Header from './header'
import Meta from './meta'

Expand All @@ -13,11 +13,9 @@ const Layout = ({
status,
nav,
settings,
footer = true,
header = true,
metadata = 'mouse',
dimmer = 'bottom',
guide = true,
scrollbar = false,
fade = true,
container = true,
Expand Down Expand Up @@ -91,7 +89,6 @@ const Layout = ({

return (
<>
{guide && <Guide color={guide} />}
{scrollbar && <Scrollbar />}
<Meta card={card} description={description} title={title} url={url} />

Expand Down Expand Up @@ -137,24 +134,6 @@ const Layout = ({
{content}
</Box>

{footer && (
<Box
as='footer'
sx={{
width: '100%',
borderStyle: 'solid',
borderColor: 'muted',
borderWidth: '0px',
borderTopWidth: '1px',
...hideOnPrint,
}}
>
<Container>
<Footer />
</Container>
</Box>
)}

{dimmer === 'bottom' && (
<Box
sx={{
Expand Down

0 comments on commit b3c8500

Please sign in to comment.