mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Rename "Tabs" to "TopNavigationAccount"
This commit is contained in:
parent
c0af63cc5c
commit
ad26f2c30b
@ -76,7 +76,7 @@ class Indicator extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const AccountTabs = (props: any) => {
|
const TopNavigationAccount = (props: any) => {
|
||||||
const urlParams = props.match.params;
|
const urlParams = props.match.params;
|
||||||
const basePath = `/device/${urlParams.device}/network/${urlParams.network}/account/${urlParams.account}`;
|
const basePath = `/device/${urlParams.device}/network/${urlParams.network}/account/${urlParams.account}`;
|
||||||
|
|
||||||
@ -102,4 +102,4 @@ const AccountTabs = (props: any) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AccountTabs;
|
export default TopNavigationAccount;
|
@ -17,7 +17,7 @@ import Log from 'components/Log';
|
|||||||
import DeviceSettingsTabs from './views/DeviceSettingsTabs';
|
import DeviceSettingsTabs from './views/DeviceSettingsTabs';
|
||||||
|
|
||||||
import LeftNavigation from './components/LeftNavigation/Container';
|
import LeftNavigation from './components/LeftNavigation/Container';
|
||||||
import AccountTabs from './components/Tabs';
|
import TopNavigationAccount from './components/TopNavigationAccount';
|
||||||
|
|
||||||
type WalletContainerProps = {
|
type WalletContainerProps = {
|
||||||
wallet: $ElementType<State, 'wallet'>,
|
wallet: $ElementType<State, 'wallet'>,
|
||||||
@ -80,8 +80,8 @@ const Wallet = (props: WalletContainerProps) => (
|
|||||||
<LeftNavigation />
|
<LeftNavigation />
|
||||||
<MainContent>
|
<MainContent>
|
||||||
<Navigation>
|
<Navigation>
|
||||||
<Route path="/device/:device/network/:network/account/:account" component={AccountTabs} />
|
|
||||||
<Route path="/device/:device/device-settings" component={DeviceSettingsTabs} />
|
<Route path="/device/:device/device-settings" component={DeviceSettingsTabs} />
|
||||||
|
<Route path="/device/:device/network/:network/account/:account" component={TopNavigationAccount} />
|
||||||
</Navigation>
|
</Navigation>
|
||||||
<Notifications />
|
<Notifications />
|
||||||
<Log />
|
<Log />
|
||||||
|
Loading…
Reference in New Issue
Block a user