This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree 4 files changed +83
-1
lines changed
4 files changed +83
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " oasis-dex" ,
3
- "version" : " 1.5.8 " ,
3
+ "version" : " 1.5.9 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"autoprefixer" : " 7.1.2" ,
Original file line number Diff line number Diff line change
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 } ) ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import CSSModules from "react-css-modules";
21
21
import version from "../version" ;
22
22
import network from "../store/selectors/network" ;
23
23
import OasisYourNodeIsSyncingWrapper from "./OasisYourNodeIsSyncing" ;
24
+ import ClickWarp from "../components/ClickWarp" ;
24
25
25
26
const propTypes = PropTypes && { } ;
26
27
@@ -73,6 +74,10 @@ export class OasisAppWrapper extends PureComponent {
73
74
isAppLoading, globalFormLock,
74
75
} = this . props ;
75
76
77
+ if ( ! localStorage . getItem ( 'announcement' ) ) {
78
+ return < ClickWarp /> ;
79
+ }
80
+
76
81
if ( noProviderConnected )
77
82
return < NoConnection /> ;
78
83
You can’t perform that action at this time.
0 commit comments