diff options
author | Ashm Walia <40498934+ashmgarv@users.noreply.github.com> | 2021-01-16 09:51:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 09:51:36 -0800 |
commit | 9711093bfa5810868e3cd17008bb7b3ddc7b9034 (patch) | |
tree | 6a8bb4341b1623cfc2da86af4b3b28c1fd3f8a44 /src/components/onboarding/LinkSocialMedia.tsx | |
parent | d85eaeb878cbbeedda860ee5809b81100c910af2 (diff) | |
parent | 30391867438bb28cbcba9fc9ee2ff6d00027fd86 (diff) |
Merge branch 'master' into tma538-friend-requests
Diffstat (limited to 'src/components/onboarding/LinkSocialMedia.tsx')
-rw-r--r-- | src/components/onboarding/LinkSocialMedia.tsx | 5 |
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); } }; |