Merge branch 'hn.validator-onboarding-responsive' of https://github.com/nimbus-gui/nimbus-gui into hn.validator-onboarding-responsive

This commit is contained in:
RadoslavDimchev 2024-01-18 18:51:21 +02:00
commit 66f051e7d4
8 changed files with 20 additions and 12 deletions

View File

@ -10,10 +10,18 @@ type ResponsiveStackProps = {
const ResponsiveStack = ({ isVerticalAligned, children, space, style }: ResponsiveStackProps) => {
if (isVerticalAligned) {
return <YStack space={space} style={style}>{children}</YStack>
return (
<YStack space={space} style={style}>
{children}
</YStack>
)
}
return <XStack space={space} style={style}>{children}</XStack>
return (
<XStack space={space} style={style}>
{children}
</XStack>
)
}
export default ResponsiveStack

View File

@ -1,4 +1,3 @@
.layout::after {
display: block;
content: '';

View File

@ -11,10 +11,7 @@ type OSCardProps = {
const OSCard = ({ name, icon, onClick, isSelected }: OSCardProps) => {
return (
<YStack
className={`osCard ${isSelected ? 'selected' : ''}`}
onPress={onClick}
>
<YStack className={`osCard ${isSelected ? 'selected' : ''}`} onPress={onClick}>
<Text size={19} weight={'semibold'}>
{name}
</Text>

View File

@ -16,7 +16,12 @@ type OSCardsProps = {
const OSCards = ({ selectedOS, handleOSCardClick }: OSCardsProps) => {
return (
<XStack className="osCardsContainer" justifyContent={'space-between'} my={'15px'} flexWrap="wrap">
<XStack
className="osCardsContainer"
justifyContent={'space-between'}
my={'15px'}
flexWrap="wrap"
>
{cards.map(card => (
<OSCard
key={card.name}

View File

@ -18,7 +18,7 @@ const ValidatorSetupInstall = () => {
}
return (
<YStack style={{ padding: '26px 32px', width:'fit-content' }}>
<YStack style={{ padding: '26px 32px', width: 'fit-content' }}>
<Text size={27} weight={'semibold'}>
Validator Setup
</Text>

View File

@ -50,7 +50,6 @@ const ExecClientCard = ({ name, icon, isComingSoon }: ExecClientCardProps) => {
alignItems: 'center',
padding: '3px 6px',
borderRadius: '67px',
}}
>
<Text size={11} color="#fff">

View File

@ -1,4 +1,4 @@
import { Stack, XStack, YStack } from 'tamagui'
import { Stack, YStack } from 'tamagui'
import { Text } from '@status-im/components'
import ExecClientCard from './ExecClientCard'

View File

@ -71,4 +71,4 @@ export const getHeightPercentages = (amountOfElements: number) => {
export const copyFunction = (text: string) => {
navigator.clipboard.writeText(text)
}
}