Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile ParaTime picker #482

Merged
merged 8 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename navigation
  • Loading branch information
lubej committed Jun 19, 2023
commit 41ed41307dd35ab358bd92eded20a9fe2912ee25
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