Skip to content

Commit

Permalink
refactor(product page): Remove unnecessary HStack
Browse files Browse the repository at this point in the history
  • Loading branch information
dhmacs committed Jan 9, 2024
1 parent a2c1014 commit 287aa4a
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
BoxProps,
Circle,
Flex,
HStack,
Image,
Select,
SimpleGrid,
Expand Down Expand Up @@ -48,13 +47,11 @@ export function ProductOptions({
const selectorType = getSelectorType(option);
return (
<VStack align="stretch" key={option.id}>
<HStack>
<Text fontWeight="medium" color="gray.800">
{option.name}
{selectorType === SelectorType.SINGLE &&
`: ${option.values[0]}`}
</Text>
</HStack>
<Text fontWeight="medium" color="gray.800">
{option.name}
{selectorType === SelectorType.SINGLE &&
`: ${option.values[0]}`}
</Text>
{selectorType === SelectorType.SELECT && (
<Select
bg="white"
Expand Down

0 comments on commit 287aa4a

Please sign in to comment.