This commit is contained in:
2026-03-24 21:11:17 +08:00
parent aee736fe0b
commit b63c00d251
9 changed files with 104 additions and 11 deletions

View File

@@ -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>