Skip to content

Commit

Permalink
Merge branch 'main' of github.com:MetaMask/metamask-mobile into feat-…
Browse files Browse the repository at this point in the history
…header-update
  • Loading branch information
vinnyhoward committed Oct 18, 2024
2 parents 31072ee + 076fa31 commit e98d68d
Show file tree
Hide file tree
Showing 23 changed files with 2,890 additions and 894 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Input: React.FC<InputProps> = ({
isReadonly = false,
onBlur,
onFocus,
autoFocus = false,
autoFocus = true,
...props
}) => {
const [isFocused, setIsFocused] = useState(autoFocus);
Expand Down Expand Up @@ -64,7 +64,7 @@ const Input: React.FC<InputProps> = ({
{...props}
style={styles.base}
editable={!isDisabled && !isReadonly}
autoFocus
autoFocus={autoFocus}
onBlur={onBlurHandler}
onFocus={onFocusHandler}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`Input should render correctly 1`] = `
style={
{
"backgroundColor": "#ffffff",
"borderColor": "transparent",
"borderColor": "#0376c9",
"borderWidth": 1,
"color": "#141618",
"fontFamily": "Euclid Circular B",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function ActivationKeyForm() {
returnKeyType={'done'}
onSubmitEditing={handleSubmit}
isReadonly={Boolean(key)}
autoFocus
/>
</Row>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ exports[`AddActivationKey renders correctly 1`] = `
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"borderColor": "#bbc0c5",
"borderColor": "#0376c9",
"borderRadius": 8,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
2 changes: 2 additions & 0 deletions app/components/Views/EditAccountName/EditAccountName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const EditAccountName = () => {
value={accountName}
onChangeText={onChangeName}
testID={EditAccountNameSelectorIDs.ACCOUNT_NAME_INPUT}
autoFocus
/>
</View>
<View style={styles.inputContainer}>
Expand All @@ -137,6 +138,7 @@ const EditAccountName = () => {
selectedInternalAccount?.address,
'mid',
)}
autoFocus
/>
) : null}
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports[`EditAccountName should render correctly 1`] = `
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"borderColor": "#bbc0c5",
"borderColor": "#0376c9",
"borderRadius": 8,
"borderWidth": 1,
"flexDirection": "row",
Expand Down Expand Up @@ -120,7 +120,7 @@ exports[`EditAccountName should render correctly 1`] = `
{
"alignItems": "center",
"backgroundColor": "#ffffff",
"borderColor": "#bbc0c5",
"borderColor": "#0376c9",
"borderRadius": 8,
"borderWidth": 1,
"flexDirection": "row",
Expand Down
Loading

0 comments on commit e98d68d

Please sign in to comment.