fix: onboarding button disabled state; feat: update GPS from client profile
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user