aboutsummaryrefslogtreecommitdiff
path: root/src/components/onboarding/LinkSocialMedia.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@thetaggid.com>2021-01-15 19:27:03 -0500
committerGitHub <noreply@github.com>2021-01-15 19:27:03 -0500
commit1803da7388902db45ad37fbac509604ae632bdb5 (patch)
treea786919f9bc42f7797367d55ed8f1e099134f368 /src/components/onboarding/LinkSocialMedia.tsx
parent4d9efafeb4243e20e1fc936c27b9055c7ec82f8a (diff)
parentcc52dabaaf529763e9c1c4683ba94ed55c5671a8 (diff)
Merge pull request #176 from IvanIFChen/tma498-update-error-strings
[TMA-498] Update Error Strings
Diffstat (limited to 'src/components/onboarding/LinkSocialMedia.tsx')
-rw-r--r--src/components/onboarding/LinkSocialMedia.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/onboarding/LinkSocialMedia.tsx b/src/components/onboarding/LinkSocialMedia.tsx
index c7b0a6b4..6cb7e9cf 100644
--- a/src/components/onboarding/LinkSocialMedia.tsx
+++ b/src/components/onboarding/LinkSocialMedia.tsx
@@ -13,6 +13,7 @@ import {
SOCIAL_FONT_COLORS,
TAGG_ICON_DIM,
} from '../../constants/constants';
+import {ERROR_LINK, SUCCESS_LINK} from '../../constants/strings';
import {
handlePressForAuthBrowser,
registerNonIntegratedSocialLink,
@@ -64,12 +65,12 @@ const SocialMediaLinker: React.FC<SocialMediaLinkerProps> = ({
const linkNonIntegratedSocial = async (username: string) => {
if (await registerNonIntegratedSocialLink(label, username)) {
- Alert.alert(`Successfully linked ${label} 🎉`);
+ Alert.alert(SUCCESS_LINK(label));
setAuthenticated(true);
} else {
// If we display too fast the alert will get dismissed with the modal
setTimeout(() => {
- Alert.alert(`Something went wrong, we can't link with ${label} 😔`);
+ Alert.alert(ERROR_LINK(label));
}, 500);
}
};