Skip to content

Commit

Permalink
refactor: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum committed Sep 4, 2024
1 parent 0929c31 commit 746df0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/form/Field.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const FieldInput = styled.input<{ error?: any }>`
`}
`;

export const FileUploadWrapper = styled.div<{ error: unknown }>`
export const FileUploadWrapper = styled.div<{ $error: unknown }>`
position: relative;
overflow: hidden;
display: flex;
Expand Down Expand Up @@ -105,8 +105,8 @@ export const FileUploadWrapper = styled.div<{ error: unknown }>`
border-radius: 0;
outline: none;
${({ error }) =>
!checkIfValueIsEmpty(error)
${({ $error }) =>
!checkIfValueIsEmpty($error)
? css`
border: 1px solid ${colors.orange};
`
Expand All @@ -118,7 +118,7 @@ export const FileUploadWrapper = styled.div<{ error: unknown }>`
&:focus,
&:hover {
border: 1px solid var(--secondary);
border: 1px solid ${colors.lightGrey};
}
/* prettier-ignore */
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/Upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function Upload({
<FileUploadWrapper
data-disabled={disabled}
onClick={handleChooseFile}
error={errorMessage}
$error={errorMessage}
style={style}
>
{isLoading ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/product/ProductInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function ProductInformation() {
<FormField
title="Phygital title"
required
subTitle="Give you phygital bundle a title, using words people would look for when searching for it."
subTitle="Give your phygital bundle a title, using words people would look for when searching for it."
>
<Input
name="productInformation.bundleName"
Expand Down

0 comments on commit 746df0e

Please sign in to comment.