fix: onboarding button disabled state; feat: update GPS from client profile

This commit is contained in:
Nemo
2026-03-24 22:36:08 +08:00
parent 9ca012f75a
commit 055b3a4330
2 changed files with 47 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ export default function NewClientScreen() {
// ── Submit ─────────────────────────────────────────────────────────────────
const submit = async () => {
if (submitting) return; // guard against double-tap
setSubmitting(true);
try {
// 1. Create client
@@ -395,8 +396,8 @@ export default function NewClientScreen() {
) : (
<TouchableOpacity
onPress={submit}
disabled={submitting}
style={{ flex: 2, paddingVertical: 16, borderRadius: 12, backgroundColor: submitting ? '#94A3B8' : '#059669', alignItems: 'center' }}
activeOpacity={0.85}
style={{ flex: 2, paddingVertical: 16, borderRadius: 12, backgroundColor: submitting ? '#94A3B8' : '#059669', opacity: 1, alignItems: 'center' }}
>
{submitting
? <ActivityIndicator color="#fff" />