fix: use new constants and remove texts

This commit is contained in:
RadoslavDimchev 2023-10-23 19:04:45 +03:00
parent 1532f79d0e
commit aef8b1769b

View File

@ -7,9 +7,10 @@ import { useSelector } from 'react-redux'
import OsCard from './OsCard' import OsCard from './OsCard'
import SyntaxHighlighterBox from './SyntaxHighlighter' import SyntaxHighlighterBox from './SyntaxHighlighter'
import { RootState } from '../../../../redux/store' import { RootState } from '../../../../redux/store'
import { LINUX, WINDOWS } 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)
return ( return (
@ -59,20 +60,20 @@ const ValidatorSetupInstall = () => {
<OsCard <OsCard
icon="/icons/apple-logo.svg" icon="/icons/apple-logo.svg"
name="MacOS" name="MacOS"
isSelected={selectedOs === 'Mac'} isSelected={selectedOs === 'MAC'}
onClick={() => setSelectedOs('Mac')} onClick={() => setSelectedOs('MAC')}
/> />
<OsCard <OsCard
icon="/icons/linux-logo.svg" icon="/icons/linux-logo.svg"
name="Linux" name={LINUX}
isSelected={selectedOs === 'Linux'} isSelected={selectedOs === LINUX}
onClick={() => setSelectedOs('Linux')} onClick={() => setSelectedOs(LINUX)}
/> />
<OsCard <OsCard
icon="/icons/windows-logo.svg" icon="/icons/windows-logo.svg"
name="Windows" name={WINDOWS}
isSelected={selectedOs === 'Windows'} isSelected={selectedOs === WINDOWS}
onClick={() => setSelectedOs('Windows')} onClick={() => setSelectedOs(WINDOWS)}
/> />
</XStack> </XStack>
<YStack space={'$2'}> <YStack space={'$2'}>