Skip to content

Commit 9b59216

Browse files
jamaljsrguggero
authored andcommitted
nav: remove timestamp gating around Lightning Node Connect screen
1 parent 45e15c1 commit 9b59216

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

app/src/components/connect/ConnectPage.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import { Redirect } from 'react-router';
32
import { observer } from 'mobx-react-lite';
43
import styled from '@emotion/styled';
54
import nodeConnectSvg from 'assets/images/lightning-node-connect.svg';
@@ -12,7 +11,7 @@ import SessionList from './SessionList';
1211

1312
const Styled = {
1413
Wrapper: styled.section`
15-
padding: 80px 0 0 80px;
14+
padding-top: 80px;
1615
`,
1716
DisplayLarge: styled.div`
1817
font-family: ${props => props.theme.fonts.open.semiBold};
@@ -33,11 +32,7 @@ const Styled = {
3332

3433
const ConnectPage: React.FC = () => {
3534
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();
4136

4237
const { Wrapper, DisplayLarge, Description, Divider } = Styled;
4338
return !sessionStore.hasMultiple ? (

app/src/components/layout/NavMenu.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,7 @@ const NavMenu: React.FC = () => {
8484
<NavItem page="history" onClick={appView.goToHistory} />
8585
<NavItem page="pool" badge={l('common.preview')} onClick={appView.goToPool} />
8686
<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} />
9488
</Nav>
9589
</>
9690
);

app/src/store/views/appView.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ export default class AppView {
3939
}
4040
}
4141

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-
4942
/** Change to the Auth page */
5043
gotoAuth() {
5144
this.goTo(`${PUBLIC_URL}/`);

0 commit comments

Comments
 (0)