Skip to content

Commit

Permalink
design: Edit-Input isPrice에 따른 디자인 변화 (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyojeong committed Jan 23, 2024
2 parents 67fa838 + fdc2483 commit 27c269f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-zoos-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@offer-ui/react": patch
---

- Input-Edit: isPrice에 따른 UI변화
18 changes: 10 additions & 8 deletions packages/react/src/components/Input/Edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Edit = forwardRef(function Edit(
inputSize = 'small',
width = '100%',
onChange,
isPrice,
isPrice = false,
...props
}: EditInputProps,
ref: ForwardedRef<HTMLInputElement>
Expand Down Expand Up @@ -74,13 +74,15 @@ export const Edit = forwardRef(function Edit(
onChange={handleChange}
{...props}
/>
<StyledPriceUnit
color="grayScale90"
hasGuideMessage={hasGuideMessage}
isSmall={isSmall}
styleType="subtitle01M">
{VALIDATE_MESSAGE.PRICE_UNIT}
</StyledPriceUnit>
{isPrice && (
<StyledPriceUnit
color="grayScale90"
hasGuideMessage={hasGuideMessage}
isSmall={isSmall}
styleType="subtitle01M">
{VALIDATE_MESSAGE.PRICE_UNIT}
</StyledPriceUnit>
)}
</StyledInputLabel>
{hasGuideMessage && (
<StyledInputGuideMessage status={status} styleType="caption01M">
Expand Down

0 comments on commit 27c269f

Please sign in to comment.