Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Fix claim input error message position (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadV91 committed Feb 3, 2022
1 parent 886cdf4 commit 0a2e75a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/custom/pages/Claim/ClaimAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ export default function ClaimAddress({ account, toggleWalletModal }: ClaimAddres
<input placeholder="Address or ENS name" value={inputAddress} onChange={handleInputChange} />
</InputField>

{!account && (
<ButtonSecondary onClick={toggleWalletModal}>
<Trans>{buttonLabel}</Trans>
</ButtonSecondary>
)}

{showInputError && (
<InputErrorText>
<TYPE.error error={true}>
<Trans>Enter valid address or ENS</Trans>
</TYPE.error>
</InputErrorText>
)}

{!account && (
<ButtonSecondary onClick={toggleWalletModal}>
<Trans>{buttonLabel}</Trans>
</ButtonSecondary>
)}
</CheckAddress>
)
}
3 changes: 2 additions & 1 deletion src/custom/pages/Claim/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,8 @@ export const InputError = styled.div`
`

export const InputErrorText = styled.div`
margin: 0 0 24px;
margin: 0 0 15px;
text-align: center;
`

export const InputFieldTitle = styled.div`
Expand Down

0 comments on commit 0a2e75a

Please sign in to comment.