Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
a4689fc1
Commit
a4689fc1
authored
Nov 17, 2020
by
Ben Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off middle banner and set HoC start and end times for 2020
parent
bd3ef208
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/views/splash/presentation.jsx
src/views/splash/presentation.jsx
+3
-2
No files found.
src/views/splash/presentation.jsx
View file @
a4689fc1
...
@@ -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
=
1
575262800000
;
// 2019-12-02
00:00:00
const
HOC_START_TIME
=
1
605484800000
;
// 2020-11-16
00:00:00
const
HOC_END_TIME
=
1
577077200000
;
// 2019
-12-23 00:00:00
const
HOC_END_TIME
=
1
608681600000
;
// 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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment