Skip to content

Commit

Permalink
feat(neuron-ui): hide the general settings and redirect to wallets se…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
Keith-CY committed Nov 14, 2019
1 parent b5d4b35 commit b3e3d0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { WalletWizardPath } from 'components/WalletWizard'
import { Routes } from 'utils/const'

const pivotItems = [
{ label: 'settings.setting-tabs.general', url: Routes.SettingsGeneral },
// { label: 'settings.setting-tabs.general', url: Routes.SettingsGeneral },
{ label: 'settings.setting-tabs.wallets', url: Routes.SettingsWallets },
{ label: 'settings.setting-tabs.network', url: Routes.SettingsNetworks },
]
Expand Down
7 changes: 4 additions & 3 deletions packages/neuron-ui/src/containers/Main/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useMemo } from 'react'
import { Route, RouteComponentProps } from 'react-router-dom'
import { Route, RouteComponentProps, Switch, Redirect } from 'react-router-dom'
import { useTranslation } from 'react-i18next'

import { useState } from 'states/stateProvider'
Expand Down Expand Up @@ -157,7 +157,8 @@ const MainContent = ({
})

return (
<>
<Switch>
<Redirect from={Routes.SettingsGeneral} to={Routes.SettingsWallets} />
{mainContents.map(container => (
<Route
exact={container.exact}
Expand All @@ -168,7 +169,7 @@ const MainContent = ({
}}
/>
))}
</>
</Switch>
)
}

Expand Down

0 comments on commit b3e3d0e

Please sign in to comment.