Skip to content

Commit

Permalink
chore: disable homepage transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
apotdevin committed Dec 17, 2021
1 parent 68ca44e commit e092ece
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
# -----------
# THEME='dark'
# CURRENCY='sat'
# DISABLE_TRANSACTIONS_HOMEPAGE=true

# -----------
# Privacy Configs
Expand Down
2 changes: 2 additions & 0 deletions src/client/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ module.exports = {
disableLnMarkets: process.env.DISABLE_LNMARKETS === 'true',
noVersionCheck: process.env.NO_VERSION_CHECK === 'true',
logoutUrl: process.env.LOGOUT_URL || '',
disableTransactionsHomepage:
process.env.DISABLE_TRANSACTIONS_HOMEPAGE === 'true',
},
};
6 changes: 5 additions & 1 deletion src/client/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import { QuickActions } from '../src/views/home/quickActions/QuickActions';
import { FlowBox } from '../src/views/home/reports/flow';
import { ForwardBox } from '../src/views/home/reports/forwardReport';
import { ConnectCard } from '../src/views/home/connect/Connect';
import getConfig from 'next/config';

const { publicRuntimeConfig } = getConfig();
const { disableTransactionsHomepage } = publicRuntimeConfig;

const HomeView = () => (
<>
Expand All @@ -20,7 +24,7 @@ const HomeView = () => (
<AccountButtons />
<ConnectCard />
<QuickActions />
<FlowBox />
{disableTransactionsHomepage ? null : <FlowBox />}
<LiquidityGraph />
<ForwardBox />
<MempoolReport />
Expand Down

0 comments on commit e092ece

Please sign in to comment.