Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve node config import suggestion style #2037

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions views/Settings/NodeConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,17 @@ export default class NodeConfiguration extends React.Component<
navigation={navigation}
/>
{!!suggestImport && (
<View style={styles.clipboardImport}>
<View
style={{
padding: 10,
backgroundColor: themeColor('disabled')
}}
>
<Text style={styles.whiteText}>
{localeString(
'views.Settings.AddEditNode.connectionStringClipboard'
)}
:
</Text>
<Text
style={{
Expand All @@ -722,7 +728,7 @@ export default class NodeConfiguration extends React.Component<
? `${suggestImport.substring(0, 100)}...`
: suggestImport}
</Text>
<Text style={styles.whiteText}>
<Text style={{ ...styles.whiteText, marginBottom: 10 }}>
{localeString(
'views.Settings.AddEditNode.importPrompt'
)}
Expand All @@ -733,19 +739,13 @@ export default class NodeConfiguration extends React.Component<
'views.Settings.AddEditNode.import'
)}
onPress={() => this.importClipboard()}
titleStyle={{
color: 'rgba(92, 99,216, 1)'
}}
tertiary
/>
</View>
<View style={styles.button}>
<Button
title={localeString('general.cancel')}
onPress={() => this.clearImportSuggestion()}
titleStyle={{
color: 'rgba(92, 99,216, 1)'
}}
tertiary
/>
</View>
Expand Down Expand Up @@ -930,7 +930,7 @@ export default class NodeConfiguration extends React.Component<
<Text
style={{
...styles.text,
color: themeColor('text')
color: themeColor('secondaryText')
}}
>
{localeString(
Expand Down Expand Up @@ -1735,16 +1735,10 @@ const styles = StyleSheet.create({
height: 50
},
button: {
paddingTop: 10,
paddingBottom: 10,
paddingVertical: 10,
width: 350,
alignSelf: 'center'
},
clipboardImport: {
padding: 10,
backgroundColor: 'rgba(92, 99,216, 1)',
color: 'white'
},
modal: {
margin: 20,
backgroundColor: 'white',
Expand Down
Loading