Commit a4689fc1 authored by Ben Wheeler's avatar Ben Wheeler

Turn off middle banner and set HoC start and end times for 2020

parent bd3ef208
...@@ -36,8 +36,8 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx'); ...@@ -36,8 +36,8 @@ const ShareProjectMessage = require('./activity-rows/share-project.jsx');
const TopBanner = require('./hoc/top-banner.jsx'); const TopBanner = require('./hoc/top-banner.jsx');
const MiddleBanner = require('./hoc/middle-banner.jsx'); const MiddleBanner = require('./hoc/middle-banner.jsx');
const HOC_START_TIME = 1575262800000; // 2019-12-02 00:00:00 const HOC_START_TIME = 1605484800000; // 2020-11-16 00:00:00
const HOC_END_TIME = 1577077200000; // 2019-12-23 00:00:00 const HOC_END_TIME = 1608681600000; // 2020-12-23 00:00:00
require('./splash.scss'); require('./splash.scss');
...@@ -468,6 +468,7 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/ ...@@ -468,6 +468,7 @@ class SplashPresentation extends React.Component { // eslint-disable-line react/
Object.keys(this.props.user).length !== 0 && // Only show if user is logged in Object.keys(this.props.user).length !== 0 && // Only show if user is logged in
Date.now() >= HOC_START_TIME && // Show middle banner on and after Dec 3 Date.now() >= HOC_START_TIME && // Show middle banner on and after Dec 3
Date.now() < HOC_END_TIME && // Hide middle banner after Dec 14 Date.now() < HOC_END_TIME && // Hide middle banner after Dec 14
false && // we did not use this middle banner in last HoC
<MediaQuery <MediaQuery
key="frameless-desktop" key="frameless-desktop"
minWidth={frameless.tabletPortrait} minWidth={frameless.tabletPortrait}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment