Skip to content

Commit ec6757e

Browse files
committed
zustand headsup
1 parent 7586bfb commit ec6757e

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/components/InfoBanner2.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ const InfoBanner = ({ visible, onHide }) => {
4949
<div style={textStyle}>
5050
<div style={{ marginBottom: 20 }}>
5151
<div style={{ marginBottom: 10 }}>
52-
Material of Part 12 has been moved to <a style={linkStyle} href="https://courses.mooc.fi/org/uh-cs/courses/full-stack-open-containers">https://courses.mooc.fi/org/uh-cs/courses/full-stack-open-containers</a>
52+
<strong>Significant changes comming to this part in near future!</strong> Redux will be replaced by Zustand.
53+
If you have already started the part, finnish it quickly. If not, wait for a couple of days.
5354
</div>
5455
<div style={{ marginBottom: 10 }}>
55-
The content and exercises are still same, there is a change how exercises are submitted.
56-
</div>
57-
<div>
58-
The old content is still found <a style={linkStyle} href="https://github.com/fullstack-hy2020/fullstack-hy2020.github.io/tree/7599b17c02b056fcad4f12d8708f0e07980b7564/src/content/12">here</a>.
56+
The new version is expected to be online 5th or 6th April. The content on Redux shall stay accessible.
5957
</div>
6058
</div>
6159
</div>

src/components/layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import PropTypes from 'prop-types';
1313
import SkipToContent from './SkipToContent/SkipToContent';
1414

1515
const BANNER_TO_KEY = 'part_09_changes';
16-
const BANNER2_TO_KEY = 'part_12_changes';
16+
const BANNER2_TO_KEY = 'part_6_comming_changes';
1717
const BANNER3_TO_KEY = 'part_11_changes';
1818

1919
const Layout = (props) => {
@@ -37,15 +37,15 @@ const Layout = (props) => {
3737
useEffect(() => {
3838
const key = localStorage.getItem(BANNER2_TO_KEY);
3939
if (!key) {
40-
const relevant = window.location.href.includes('en/part12') || window.location.href.includes('osa12');
40+
const relevant = window.location.href.includes('en/part6') || window.location.href.includes('osa6');
4141
setVisible2(relevant);
4242
}
4343
}, []);
4444

4545
useEffect(() => {
4646
const key = localStorage.getItem(BANNER3_TO_KEY);
4747
if (!key) {
48-
const relevant = window.location.href.includes('en/part11') || window.location.href.includes('osa11');
48+
const relevant = window.location.href.includes('en/part14') || window.location.href.includes('osa14');
4949
setVisible3(relevant);
5050
}
5151
}, []);

0 commit comments

Comments
 (0)