Skip to content

Commit

Permalink
Rename navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
lubej committed Jun 19, 2023
1 parent e767d8b commit e673965
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/components/ParaTimePicker/LayerDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const LayerDetails: FC<LayerDetailsProps> = ({ network, selectedLayer })
}

return (
<Box sx={{ px: isTablet ? 2 : 5, py: isTablet ? 0 : 4, display: 'flex', minHeight: contentMinHeight }}>
<Box sx={{ px: isTablet ? 2 : 5, py: 4, display: 'flex', minHeight: contentMinHeight }}>
<Box sx={{ pt: 1, pr: 4, color: COLORS.brandDark }}>
<Circle
color={COLORS.white}
Expand Down
8 changes: 5 additions & 3 deletions src/app/components/ParaTimePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ const ParaTimePickerContent: FC<ParaTimePickerContentProps> = ({ onClose, onConf
const [showNetworkMenu, setShowNetworkMenu] = useState(isTablet || network !== Network.mainnet)
const [selectedLayer, setSelectedLayer] = useState<Layer>(layer)
const [selectedNetwork, setSelectedNetwork] = useState<Network>(network)
const [tabletStep, setTabletStep] = useState<ParaTimePickerTabletStep>(ParaTimePickerTabletStep.Network)
const [tabletStep, setTabletStep] = useState<ParaTimePickerTabletStep>(
ParaTimePickerTabletStep.ParaTimeDetails,
)
const selectNetwork = (newNetwork: Network) => {
setSelectedNetwork(newNetwork)
setSelectedLayer(RouteUtils.getEnabledLayersForNetwork(newNetwork)[0])
Expand Down Expand Up @@ -130,7 +132,7 @@ const ParaTimePickerContent: FC<ParaTimePickerContentProps> = ({ onClose, onConf
setTabletStep(ParaTimePickerTabletStep.Network)
}}
>
{t('paraTimePicker.selectNetwork')}
{t('paraTimePicker.viewNetworks')}
</TabletBackButton>
)}
{tabletStep === ParaTimePickerTabletStep.ParaTimeDetails && (
Expand All @@ -141,7 +143,7 @@ const ParaTimePickerContent: FC<ParaTimePickerContentProps> = ({ onClose, onConf
setTabletStep(ParaTimePickerTabletStep.ParaTime)
}}
>
{t('paraTimePicker.selectParatime')}
{t('paraTimePicker.viewParaTimes')}
</TabletBackButton>
)}
</TabletActionBar>
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@
"rpcWebSockets": "RPC WebSockets endpoint: {{ endpoint }}",
"selected": "(currently active)",
"toggleNetworkMenu": "Toggle networks menu",
"selectNetwork": "Select Network",
"selectParatime": "Select ParaTime",
"viewNetworks": "View Networks",
"viewParaTimes": "View ParaTimes",
"mainnet": {
"emerald": "The Emerald ParaTime is our official EVM Compatible ParaTime providing smart contract environment with full EVM compatibility.",
"sapphire": "The Sapphire ParaTime is our official confidential EVM Compatible ParaTime providing a smart contract development environment with EVM compatibility."
Expand Down

0 comments on commit e673965

Please sign in to comment.