From 3362da273a4ffcc7d6362278bcb9fd919deda2b9 Mon Sep 17 00:00:00 2001 From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com> Date: Tue, 10 Nov 2020 16:28:15 -0800 Subject: [TMA - 388] Block Users (Frontend) (#115) * initial * Final * sc * sc * sall change * Remove follow button when blocked * Small change * small changes again --- src/constants/api.ts | 1 + src/constants/constants.ts | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/constants') diff --git a/src/constants/api.ts b/src/constants/api.ts index 4effc1d3..f69ef943 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -21,6 +21,7 @@ export const FOLLOW_USER_ENDPOINT: string = API_URL + 'follow/'; export const UNFOLLOW_USER_ENDPOINT: string = API_URL + 'unfollow/'; export const FOLLOWERS_ENDPOINT: string = API_URL + 'followers/'; export const FOLLOWING_ENDPOINT: string = API_URL + 'following/'; +export const BLOCK_USER_ENDPOINT: string = API_URL + 'block/'; // Register Social Link (Non-integrated) export const LINK_SNAPCHAT_ENDPOINT: string = API_URL + 'link-sc/'; diff --git a/src/constants/constants.ts b/src/constants/constants.ts index 123d0617..dbd79b45 100644 --- a/src/constants/constants.ts +++ b/src/constants/constants.ts @@ -69,6 +69,11 @@ export const SOCIAL_FONT_COLORS = { YOUTUBE: YOUTUBE_FONT_COLOR, }; +export const TOGGLE_BUTTON_TYPE = { + FOLLOW_UNFOLLOW: 'Follow', + BLOCK_UNBLOCK: 'Block', +}; + // Profile Moments export const defaultMoments: Array = [ 'Early Life', -- cgit v1.2.3-70-g09d2