Skip to content

Commit

Permalink
Revert "feat(neuron-ui): hide the general settings and redirect to wa…
Browse files Browse the repository at this point in the history
…llets setting"

This reverts commit b3e3d0e.
  • Loading branch information
ashchan committed Nov 16, 2019
1 parent 476d101 commit f9b3c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 3 additions & 4 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, Switch, Redirect } from 'react-router-dom'
import { Route, RouteComponentProps } from 'react-router-dom'
import { useTranslation } from 'react-i18next'

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

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

Expand Down

0 comments on commit f9b3c15

Please sign in to comment.