1.fix
This commit is contained in:
@@ -589,14 +589,18 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
</Text>
|
||||
</View>
|
||||
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 10 }}>
|
||||
<TouchableOpacity onPress={() => {
|
||||
const domain = getServerDomain();
|
||||
const colonIdx = domain.lastIndexOf(':');
|
||||
const host = colonIdx > 0 ? domain.substring(0, colonIdx) : domain;
|
||||
const port = colonIdx > 0 ? domain.substring(colonIdx + 1) : '';
|
||||
this.setState({ showServerSettings: true, settingsHost: host, settingsPort: port });
|
||||
}}>
|
||||
<Text style={{ fontSize: 13, color: '#3498db' }}>⚙</Text>
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
const domain = getServerDomain();
|
||||
const colonIdx = domain.lastIndexOf(':');
|
||||
const host = colonIdx > 0 ? domain.substring(0, colonIdx) : domain;
|
||||
const port = colonIdx > 0 ? domain.substring(colonIdx + 1) : '';
|
||||
this.setState({ showServerSettings: true, settingsHost: host, settingsPort: port });
|
||||
}}
|
||||
hitSlop={{ top: 12, bottom: 12, left: 12, right: 12 }}
|
||||
style={{ padding: 6 }}
|
||||
>
|
||||
<Text style={{ fontSize: 20, color: '#3498db' }}>⚙</Text>
|
||||
</TouchableOpacity>
|
||||
<TouchableOpacity onPress={() => this.setState({ showAddWallet: true })} style={s.addBtn}>
|
||||
<Text style={s.addBtnText}>+ Add</Text>
|
||||
|
||||
Reference in New Issue
Block a user