Skip to content

Commit

Permalink
Fix future places checkbox style
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 committed May 11, 2022
1 parent 3dd062b commit 63d34e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ const LocalPriorityCardComponent = (props) => {
countryData,
} = props;

const {
Marine,
} = countryData;
const { Marine } = countryData;

const coastal = Marine === 'True' ? true : false;

Expand Down Expand Up @@ -207,18 +205,16 @@ const LocalPriorityCardComponent = (props) => {
description="These locations indentify the unprotected places that will lead to the most rapid conservation gains for biodiversity habitat via contributions to species representation targets."
metaDataSources={futurePlacesMetadata && futurePlacesMetadata.source}
/>
<div className={styles.toggleContainer}>
<LayerToggle
map={map}
type="checkbox"
option={NRC_TOGGLES[HALF_EARTH_FUTURE_TILE_LAYER]}
variant="dark"
key={HALF_EARTH_FUTURE_TILE_LAYER}
activeLayers={activeLayers}
onChange={handleLayerToggle}
themeCategorySlug={FUTURE_PLACES_SLUG}
/>
</div>
<LayerToggle
map={map}
type="checkbox"
option={NRC_TOGGLES[HALF_EARTH_FUTURE_TILE_LAYER]}
variant="dark"
key={HALF_EARTH_FUTURE_TILE_LAYER}
activeLayers={activeLayers}
onChange={handleLayerToggle}
themeCategorySlug={FUTURE_PLACES_SLUG}
/>
</SidebarCardWrapper>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
padding: 25px 0;
}
}

.toggleContainer {
margin: 0 20px;
}

0 comments on commit 63d34e9

Please sign in to comment.