Skip to content

Commit daaac0c

Browse files
Merge pull request #101 from blacksky-algorithms/account-deactivation
fix account reactivation flow
1 parent 6a5c680 commit daaac0c

8 files changed

Lines changed: 286 additions & 107 deletions

File tree

eslint-suppressions.json

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,11 @@
134134
"count": 1
135135
}
136136
},
137-
"src/components/dialogs/DeviceLocationRequestDialog.tsx": {
138-
"@typescript-eslint/no-explicit-any": {
139-
"count": 1
140-
}
141-
},
142137
"src/components/dialogs/EmailDialog/components/ResendEmailText.tsx": {
143138
"@typescript-eslint/no-explicit-any": {
144139
"count": 1
145140
}
146141
},
147-
"src/components/dialogs/GifSelect.tsx": {
148-
"@typescript-eslint/no-explicit-any": {
149-
"count": 1
150-
}
151-
},
152142
"src/components/dialogs/LanguageSelectDialog.tsx": {
153143
"@typescript-eslint/no-explicit-any": {
154144
"count": 1
@@ -229,11 +219,6 @@
229219
"count": 3
230220
}
231221
},
232-
"src/geolocation/service.ts": {
233-
"@typescript-eslint/no-explicit-any": {
234-
"count": 2
235-
}
236-
},
237222
"src/lib/ScrollContext.tsx": {
238223
"@typescript-eslint/no-explicit-any": {
239224
"count": 3
@@ -364,11 +349,6 @@
364349
"count": 1
365350
}
366351
},
367-
"src/screens/Deactivated.tsx": {
368-
"@typescript-eslint/no-explicit-any": {
369-
"count": 1
370-
}
371-
},
372352
"src/screens/Login/ChooseAccountForm.tsx": {
373353
"@typescript-eslint/no-explicit-any": {
374354
"count": 1
@@ -589,21 +569,6 @@
589569
"count": 3
590570
}
591571
},
592-
"src/view/com/lightbox/ImageViewing/@types/index.ts": {
593-
"@typescript-eslint/no-explicit-any": {
594-
"count": 1
595-
}
596-
},
597-
"src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx": {
598-
"@typescript-eslint/no-explicit-any": {
599-
"count": 1
600-
}
601-
},
602-
"src/view/com/lightbox/ImageViewing/index.tsx": {
603-
"@typescript-eslint/no-explicit-any": {
604-
"count": 1
605-
}
606-
},
607572
"src/view/com/lists/ListMembers.tsx": {
608573
"@typescript-eslint/no-explicit-any": {
609574
"count": 3

src/lib/strings/errors.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ export function cleanError(str: any): string {
7171
return t`Account has been suspended`
7272
}
7373
if (str.includes('Account is deactivated')) {
74-
return t`Account is deactivated`
74+
return t`Your account is deactivated. If you recently moved to a new hosting provider, reactivate to complete the migration.`
75+
}
76+
if (str.includes('Account has been taken down')) {
77+
return t`Account has been taken down`
78+
}
79+
if (str.includes('Account has been deleted')) {
80+
return t`Account has been deleted`
7581
}
7682
if (str.includes('Profile not found')) {
7783
return t`Profile not found`

0 commit comments

Comments
 (0)