Skip to content

Commit

Permalink
chore: hide add network button on production (#10566)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleBill committed Aug 22, 2023
1 parent acd5868 commit 228c1ea
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,13 @@ export const NetworkManagement = memo(function NetworkManagement() {
)
})}
</List>
<div className={classes.footer}>
<ActionButton fullWidth onClick={() => navigate(PopupRoutes.AddNetwork)}>
{t('network_management_add_network')}
</ActionButton>
</div>
{process.env.NODE_ENV === 'development' ? (
<div className={classes.footer}>
<ActionButton fullWidth onClick={() => navigate(PopupRoutes.AddNetwork)}>
{t('network_management_add_network')}
</ActionButton>
</div>
) : null}
</main>
)
})

0 comments on commit 228c1ea

Please sign in to comment.