mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-21 00:40:09 +00:00
fix: os variables names
This commit is contained in:
parent
40ec47fde7
commit
b055122273
@ -19,11 +19,11 @@ const cards = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
type OSCardsProps = {
|
type OSCardsProps = {
|
||||||
selectedOs: string
|
selectedOS: string
|
||||||
handleOsCardClick: (os: string) => void
|
handleOsCardClick: (os: string) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const OSCards = ({ selectedOs, handleOsCardClick }: OSCardsProps) => {
|
const OSCards = ({ selectedOS, handleOsCardClick }: OSCardsProps) => {
|
||||||
return (
|
return (
|
||||||
<XStack justifyContent={'space-between'} my={'15px'}>
|
<XStack justifyContent={'space-between'} my={'15px'}>
|
||||||
{cards.map(card => (
|
{cards.map(card => (
|
||||||
@ -31,7 +31,7 @@ const OSCards = ({ selectedOs, handleOsCardClick }: OSCardsProps) => {
|
|||||||
key={card.name}
|
key={card.name}
|
||||||
icon={card.icon}
|
icon={card.icon}
|
||||||
name={card.name}
|
name={card.name}
|
||||||
isSelected={selectedOs === card.name}
|
isSelected={selectedOS === card.name}
|
||||||
onClick={() => handleOsCardClick(card.name)}
|
onClick={() => handleOsCardClick(card.name)}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
@ -10,11 +10,11 @@ import { DOCUMENTATIONS } from './documentations'
|
|||||||
import { MAC } from '../../../../constants'
|
import { MAC } from '../../../../constants'
|
||||||
|
|
||||||
const ValidatorSetupInstall = () => {
|
const ValidatorSetupInstall = () => {
|
||||||
const [selectedOs, setSelectedOs] = useState(MAC)
|
const [selectedOS, setSelectedOS] = useState(MAC)
|
||||||
const selectedClient = useSelector((state: RootState) => state.execClient.selectedClient)
|
const selectedClient = useSelector((state: RootState) => state.execClient.selectedClient)
|
||||||
|
|
||||||
const handleOsCardClick = (os: string) => {
|
const handleOsCardClick = (os: string) => {
|
||||||
setSelectedOs(os)
|
setSelectedOS(os)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -36,7 +36,7 @@ const ValidatorSetupInstall = () => {
|
|||||||
<Text size={15} color="#647084" weight={'regular'}>
|
<Text size={15} color="#647084" weight={'regular'}>
|
||||||
{DOCUMENTATIONS[selectedClient].general}
|
{DOCUMENTATIONS[selectedClient].general}
|
||||||
</Text>
|
</Text>
|
||||||
<OSCards selectedOs={selectedOs} handleOsCardClick={handleOsCardClick} />
|
<OSCards selectedOS={selectedOS} handleOsCardClick={handleOsCardClick} />
|
||||||
<YStack space={'$2'}>
|
<YStack space={'$2'}>
|
||||||
<Text size={19}>Package Managers</Text>
|
<Text size={19}>Package Managers</Text>
|
||||||
<Text size={15} weight={'semibold'}>
|
<Text size={15} weight={'semibold'}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user