Skip to content

Commit

Permalink
fix: support additional props AddressField component (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Melisa Anabella Rossi authored Jan 23, 2024
1 parent aeb63a2 commit 610f9d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/AddressField/AddressField.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
.dui-address-field__address {
color: var(--secondary-text);
position: absolute;
top: 10px;
bottom: 42px;
right: 48px;
font-size: 20px;
z-index: 1;
Expand Down
10 changes: 5 additions & 5 deletions src/components/AddressField/AddressField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ export default function AddressField(props: Props) {
placeholder={props.placeholder ?? 'Address or name'}
value={inputValue || ''}
message={
valid === false
(valid === false
? i18n?.errorMessage || 'This is not a valid name or address'
: undefined
: undefined) || props.message
}
error={valid === false}
loading={loading}
disabled={loading}
error={valid === false || props.error}
loading={props.loading || loading}
disabled={props.disabled || loading}
input={{ autoComplete: 'off', name: 'address', id: 'address' }}
onChange={handleChange}
className={classNames(fieldClassName, {
Expand Down

1 comment on commit 610f9d7

@vercel
Copy link

@vercel vercel bot commented on 610f9d7 Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

decentraland-ui – ./

decentraland-ui-git-master-decentraland1.vercel.app
decentraland-ui-decentraland1.vercel.app

Please sign in to comment.