File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import { Redirect } from 'react-router' ;
3
2
import { observer } from 'mobx-react-lite' ;
4
3
import styled from '@emotion/styled' ;
5
4
import nodeConnectSvg from 'assets/images/lightning-node-connect.svg' ;
@@ -12,7 +11,7 @@ import SessionList from './SessionList';
12
11
13
12
const Styled = {
14
13
Wrapper : styled . section `
15
- padding: 80px 0 0 80px;
14
+ padding-top: 80px;
16
15
` ,
17
16
DisplayLarge : styled . div `
18
17
font-family: ${ props => props . theme . fonts . open . semiBold } ;
@@ -33,11 +32,7 @@ const Styled = {
33
32
34
33
const ConnectPage : React . FC = ( ) => {
35
34
const { l } = usePrefixedTranslation ( 'cmps.connect.ConnectPage' ) ;
36
- const { appView, sessionStore } = useStore ( ) ;
37
-
38
- if ( ! appView . showLightningConnect ) {
39
- return < Redirect to = "/loop" /> ;
40
- }
35
+ const { sessionStore } = useStore ( ) ;
41
36
42
37
const { Wrapper, DisplayLarge, Description, Divider } = Styled ;
43
38
return ! sessionStore . hasMultiple ? (
Original file line number Diff line number Diff line change @@ -84,13 +84,7 @@ const NavMenu: React.FC = () => {
84
84
< NavItem page = "history" onClick = { appView . goToHistory } />
85
85
< NavItem page = "pool" badge = { l ( 'common.preview' ) } onClick = { appView . goToPool } />
86
86
< NavItem page = "settings" onClick = { appView . goToSettings } />
87
- { appView . showLightningConnect && (
88
- < NavItem
89
- page = "connect"
90
- badge = { l ( 'common.beta' ) }
91
- onClick = { appView . goToConnect }
92
- />
93
- ) }
87
+ < NavItem page = "connect" badge = { l ( 'common.beta' ) } onClick = { appView . goToConnect } />
94
88
</ Nav >
95
89
</ >
96
90
) ;
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ export default class AppView {
39
39
}
40
40
}
41
41
42
- /** determines if the Lightning Node Connect UI should be visible */
43
- get showLightningConnect ( ) {
44
- const devOverride = ! ! localStorage . getItem ( 'i-want-lnc' ) ;
45
- /** the unix timestamp (ms) when Lightning Node Connect should become visible */
46
- return devOverride || Date . now ( ) > 1638288000000 ; // Nov 30 2021 11:00am EST
47
- }
48
-
49
42
/** Change to the Auth page */
50
43
gotoAuth ( ) {
51
44
this . goTo ( `${ PUBLIC_URL } /` ) ;
You can’t perform that action at this time.
0 commit comments