Skip to content

Commit c238268

Browse files
committed
Add a notification about the javafx issue
1 parent c2b0ba8 commit c238268

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

src/components/Notification.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ export default class Notification extends React.Component {
4545
}
4646

4747
this.setState({ open: false })
48-
store.set("pajanotification.shown2", true)
48+
store.set("javafx.shown2", true)
4949
}
5050

5151
handleRefresh = () => {
5252
window.location.reload()
5353
}
5454

5555
render() {
56-
if (!this.state.render || store.get("pajanotification.shown2")) {
56+
if (!this.state.render || store.get("javafx.shown2")) {
5757
return <div />
5858
}
5959
return (
@@ -67,15 +67,9 @@ export default class Notification extends React.Component {
6767
<Fragment>
6868
<StyledInfoIcon />
6969
<StyledTypography>
70-
Pajaohjausta on nyt saatavilla! Pajasta saa apua tehtäviin,
71-
ohjelmointiin ja teknisiin ongelmiin sekä hyvää
72-
ohjelmointiseuraa. Paja sijaitsee Helsingin Kumpulan
73-
kampuksella. Kaikki ovat tervetulleita pajaan! Muut paja-ajat ja
74-
tarkemmat ohjeet löytyvät{" "}
75-
<Link onClick={this.handleClose} to="/tukivaylat">
76-
tukiväylät
77-
</Link>
78-
-sivulta.
70+
Apologies for the JavaFX issue in some of the exercises in parts
71+
13 and 14! We are currently investigating it and will hopefully
72+
fix it asap.
7973
</StyledTypography>
8074
</Fragment>
8175
}

src/templates/Layout.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import {
2929
SMALL_MEDIUM_BREAKPOINT,
3030
} from "../util/constants"
3131
import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary"
32+
import Notification from "../components/Notification"
3233

3334
fontAwesomeConfig.autoAddCss = false
3435

@@ -137,6 +138,7 @@ class Layout extends React.Component {
137138
<SidebarPush>
138139
<TopBar />
139140
<ContentArea mobileMenuOpen={this.state.mobileMenuOpen}>
141+
<Notification />
140142
{children}
141143
</ContentArea>
142144
<PointsBalloon />

0 commit comments

Comments
 (0)