Skip to content

Commit

Permalink
NodeConfiguration: temp fix for cut off Macaroon field
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Apr 13, 2023
1 parent e72b79f commit 7655d78
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions views/Settings/NodeConfiguration.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as React from 'react';
import {
Modal,
Platform,
KeyboardAvoidingView,
StyleSheet,
Text,
View,
Expand Down Expand Up @@ -518,8 +516,6 @@ export default class NodeConfiguration extends React.Component<
);
};

const keyboardVerticalOffset = Platform.OS === 'ios' ? 40 : 0;

return (
<Screen>
<Header
Expand Down Expand Up @@ -1016,6 +1012,27 @@ export default class NodeConfiguration extends React.Component<
locked={loading}
/>

<Text
style={{
color: themeColor('secondaryText')
}}
>
{localeString(
'views.Settings.AddEditNode.macaroon'
)}
</Text>
<TextInput
placeholder={'0A...'}
value={macaroonHex}
onChangeText={(text: string) =>
this.setState({
macaroonHex: text.trim(),
saved: false
})
}
locked={loading}
/>

<Text
style={{
color: themeColor('secondaryText')
Expand All @@ -1037,34 +1054,6 @@ export default class NodeConfiguration extends React.Component<
}
locked={loading}
/>

<KeyboardAvoidingView
behavior="position"
keyboardVerticalOffset={
keyboardVerticalOffset
}
>
<Text
style={{
color: themeColor('secondaryText')
}}
>
{localeString(
'views.Settings.AddEditNode.macaroon'
)}
</Text>
<TextInput
placeholder={'0A...'}
value={macaroonHex}
onChangeText={(text: string) =>
this.setState({
macaroonHex: text.trim(),
saved: false
})
}
locked={loading}
/>
</KeyboardAvoidingView>
</>
)}

Expand Down

0 comments on commit 7655d78

Please sign in to comment.