Bugfix: CLI selected item spacing (#259)

This commit is contained in:
Drew Powers 2021-05-27 17:50:58 -06:00 committed by GitHub
parent 5292b08028
commit b652da4b67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'create-astro': patch
---
Bugfix: select component missing space

View file

@ -9,7 +9,7 @@ interface Props {
label: string;
description?: string;
}
const Indicator: FC<Props> = ({ isSelected }) => (isSelected ? <Text color="#3894FF">[ </Text> : <Text> </Text>);
const Indicator: FC<Props> = ({ isSelected }) => (isSelected ? <Text color="#3894FF">[ </Text> : <Text>{' '}</Text>);
const Item: FC<Props> = ({ isSelected = false, label, description }) => (
<Box display="flex">
<Text color={isSelected ? '#3894FF' : 'white'} dimColor={!isSelected}>