We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ded857d commit af82c81Copy full SHA for af82c81
src/components/InfoBanner.js
@@ -1,9 +1,7 @@
1
import React from 'react';
2
3
const InfoBanner = ({ visible, onHide }) => {
4
- const relevant = window.location.href.includes('osa4') || window.location.href.includes('en/part4')
5
-
6
- if (!relevant || !visible) return null;
+ if (!visible) return null;
7
8
const style = {
9
padding: 10,
src/components/layout.js
@@ -23,7 +23,8 @@ const Layout = props => {
23
useEffect(() => {
24
const key = localStorage.getItem(BANNER_TO_KEY)
25
if (!key) {
26
- setVisible(true);
+ const relevant = window.location.href.includes('osa4') || window.location.href.includes('en/part4')
27
+ setVisible(relevant);
28
}
29
}, []);
30
0 commit comments