From 13cb7ddf8db0adcd5a9e76ae9fbfee62a5aa8906 Mon Sep 17 00:00:00 2001 From: krishna2323 Date: Sat, 14 Sep 2024 02:32:23 +0530 Subject: [PATCH 1/2] fix: Profile - There is tooltip for Profile Share button but no tooltip for Workspace Share button. Signed-off-by: krishna2323 --- src/pages/settings/Profile/ProfilePage.tsx | 32 ++++++---------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/src/pages/settings/Profile/ProfilePage.tsx b/src/pages/settings/Profile/ProfilePage.tsx index cc3d93c3db25..68c04e2c4fcf 100755 --- a/src/pages/settings/Profile/ProfilePage.tsx +++ b/src/pages/settings/Profile/ProfilePage.tsx @@ -3,19 +3,16 @@ import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import {withOnyx} from 'react-native-onyx'; import AvatarWithImagePicker from '@components/AvatarWithImagePicker'; +import Button from '@components/Button'; import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; -import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import * as Illustrations from '@components/Icon/Illustrations'; import MenuItemGroup from '@components/MenuItemGroup'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; -import {PressableWithFeedback} from '@components/Pressable'; import ScreenWrapper from '@components/ScreenWrapper'; import ScrollView from '@components/ScrollView'; import Section from '@components/Section'; -import Text from '@components/Text'; -import Tooltip from '@components/Tooltip'; import type {WithCurrentUserPersonalDetailsProps} from '@components/withCurrentUserPersonalDetails'; import withCurrentUserPersonalDetails from '@components/withCurrentUserPersonalDetails'; import useLocalize from '@hooks/useLocalize'; @@ -27,7 +24,6 @@ import * as LocalePhoneNumber from '@libs/LocalePhoneNumber'; import Navigation from '@libs/Navigation/Navigation'; import * as PersonalDetailsUtils from '@libs/PersonalDetailsUtils'; import * as UserUtils from '@libs/UserUtils'; -import variables from '@styles/variables'; import * as PersonalDetails from '@userActions/PersonalDetails'; import CONST from '@src/CONST'; import type {TranslationPaths} from '@src/languages/types'; @@ -189,25 +185,13 @@ function ProfilePage({ brickRoadIndicator={detail.brickRoadIndicator} /> ))} - - - Navigation.navigate(ROUTES.SETTINGS_SHARE_CODE)} - style={[styles.button, styles.flexRow, styles.gap1, styles.ph4]} - > - - {translate('common.share')} - - - +