mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
rewrite features as part of store + add HIGHLIGHT_GROUPS
This commit is contained in:
@@ -108,12 +108,12 @@ class Dashboard extends React.Component {
|
||||
}
|
||||
|
||||
render () {
|
||||
const { actions, app, domain, ui } = this.props
|
||||
const { actions, app, domain, ui, features } = this.props
|
||||
|
||||
if (isMobile || window.innerWidth < 1000) {
|
||||
return (
|
||||
<div>
|
||||
{process.env.features.USE_COVER && (
|
||||
{features.USE_COVER && (
|
||||
<StaticPage showing={app.flags.isCover}>
|
||||
{/* enable USE_COVER in config.js features, and customise your header */}
|
||||
{/* pass 'actions.toggleCover' as a prop to your custom header */}
|
||||
@@ -193,7 +193,7 @@ class Dashboard extends React.Component {
|
||||
}
|
||||
/>
|
||||
) : null}
|
||||
{process.env.features.USE_COVER && (
|
||||
{features.USE_COVER && (
|
||||
<StaticPage showing={app.flags.isCover}>
|
||||
{/* enable USE_COVER in config.js features, and customise your header */}
|
||||
{/* pass 'actions.toggleCover' as a prop to your custom header */}
|
||||
|
||||
Reference in New Issue
Block a user