Skip to content

Commit c3cde41

Browse files
committed
fix linting
1 parent c09a0c6 commit c3cde41

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

components/Common/Navigation/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from 'next/link';
33
import TextLogo from './Logo/TextLogo';
44
import ImgLogo from './Logo/ImgLogo';
55
import Tab from '../../UI/Tab';
6-
import DemoDayLink from '../../UI/DemoDayLink';
6+
// import DemoDayLink from '../../UI/DemoDayLink';
77
import ApplyLink from '../ApplyLink';
88

99
const Navigation = () => {

components/Editions/Project.jsx

-43
Original file line numberDiff line numberDiff line change
@@ -17,60 +17,17 @@ const Project = ({ edition, project }) => {
1717
const determineBreakoutState = () => {
1818
// if (!isDemoDay) return null;
1919
if (true) return null;
20-
const now = Date.now();
21-
const start = new Date(project.breakout.startsAt);
22-
const end = new Date(project.breakout.endsAt);
23-
if (now <= start) return BREAKOUT_UNSTARTED;
24-
if (now < end && now > start) return BREAKOUT_IN_PROGRESS;
25-
if (now >= end) return BREAKOUT_ENDED;
26-
return null;
2720
};
2821

2922
const [breakoutStatus, setBreakoutStatus] = useState(determineBreakoutState());
3023

3124
useEffect(() => {
3225
let interval = () => {};
33-
if (false) {
34-
// if (isDemoDay) {
35-
interval = setInterval(() => {
36-
const b = determineBreakoutState();
37-
if (b !== breakoutStatus) setBreakoutStatus(b);
38-
}, 10000);
39-
}
4026
return () => clearInterval(interval);
4127
}, []);
4228

4329
let $buttonContent;
4430
let buttonDisabled = true;
45-
if (false) {
46-
// if (isDemoDay) {
47-
if (breakoutStatus === BREAKOUT_UNSTARTED) {
48-
const start = new Date(project.breakout.startsAt);
49-
const hours = start.getHours();
50-
const minutes = start.getMinutes();
51-
$buttonContent = (
52-
<>
53-
<img className="c-icon" src="/img/icons/time.svg" alt="clock" />
54-
Meet us at {hours}:{minutes === 0 ? '00' : minutes}
55-
</>
56-
);
57-
} else if (breakoutStatus === BREAKOUT_IN_PROGRESS) {
58-
$buttonContent = (
59-
<>
60-
<img className="c-icon" src="/img/icons/video.svg" alt="video" />
61-
Meet the team
62-
</>
63-
);
64-
buttonDisabled = false;
65-
} else if (breakoutStatus === BREAKOUT_ENDED) {
66-
$buttonContent = (
67-
<>
68-
<img className="c-icon" src="/img/icons/time.svg" alt="clock" />
69-
Session has ended
70-
</>
71-
);
72-
}
73-
}
7431

7532
return (
7633
// ${isDemoDay ? 'on-demo-day' : ''}

0 commit comments

Comments
 (0)