Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 29b3ff5

Browse files
committed
Merge branch 'dev' into staging
2 parents 33d0165 + 18cb5f1 commit 29b3ff5

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oasis-dex",
3-
"version": "1.5.8",
3+
"version": "1.5.9",
44
"private": true,
55
"dependencies": {
66
"autoprefixer": "7.1.2",

src/components/ClickWarp.jsx

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from 'react';
2+
import CSSModules from "react-css-modules";
3+
4+
import styles from "./WaitingForAccess.scss";
5+
import OasisButton from "./OasisButton";
6+
7+
function dismiss() {
8+
localStorage.setItem('announcement', 'true');
9+
location.reload();
10+
}
11+
12+
const ClickWarp = () => {
13+
return (
14+
<div className={styles.NoEthereumSection}>
15+
<h2>IMPORTANT</h2>
16+
<div>We will be moving to a new contract on 18-12-2018.</div>
17+
<div>
18+
<a href="https://en.reddit.com/r/MakerDAO/comments/9z7h2x/an_announcement_from_the_oasis_team/">Read more here.</a>
19+
</div>
20+
<OasisButton
21+
// className={tableStyles.inputBtn}
22+
type="button"
23+
color="success"
24+
size="xs"
25+
onClick={dismiss}
26+
>
27+
Dismiss
28+
</OasisButton>
29+
30+
</div>
31+
);
32+
};
33+
34+
ClickWarp.displayName = "Announcement";
35+
36+
export default CSSModules(ClickWarp, styles, { allowMultiple: true });

src/components/ClickWarp.scss

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@import "../styles/modules/breakpoints";
2+
@import "../styles/modules/constants";
3+
4+
.NoEthereumSection {
5+
max-width: 980px;
6+
margin: 0 auto;
7+
@media (max-width: $xxs) {
8+
max-width: 100%;
9+
}
10+
11+
text-align: center;
12+
font-family: 'Montserrat', sans-serif;
13+
font-weight: 500;
14+
color: $blue-darkish;
15+
font-size: 24px;
16+
17+
h2 {
18+
max-width: 100%;
19+
font-weight: 700;
20+
opacity: 0.8;
21+
color: #222228;
22+
}
23+
24+
.ImgHeaderLogo {
25+
width: 264px;
26+
padding-bottom: 30px;
27+
}
28+
29+
.ImgEthereumLogo {
30+
width: 61px;
31+
padding-top: 30px;
32+
margin-bottom: 40px;
33+
}
34+
35+
.HorizontalLine {
36+
color: $lightgray;
37+
border: 0;
38+
border-top: solid 1px $lightgray;
39+
}
40+
41+
}

src/containers/OasisApp.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import CSSModules from "react-css-modules";
2121
import version from "../version";
2222
import network from "../store/selectors/network";
2323
import OasisYourNodeIsSyncingWrapper from "./OasisYourNodeIsSyncing";
24+
import ClickWarp from "../components/ClickWarp";
2425

2526
const propTypes = PropTypes && {};
2627

@@ -73,6 +74,10 @@ export class OasisAppWrapper extends PureComponent {
7374
isAppLoading, globalFormLock,
7475
} = this.props;
7576

77+
if(!localStorage.getItem('announcement')) {
78+
return <ClickWarp/>;
79+
}
80+
7681
if (noProviderConnected)
7782
return <NoConnection />;
7883

0 commit comments

Comments
 (0)