Skip to content

Commit

Permalink
Merge pull request #5812 from akshayasalvi/tooltip-workspace-name
Browse files Browse the repository at this point in the history
Added tooltip for workspace name
  • Loading branch information
Beamanator authored Oct 13, 2021
2 parents 36c929a + d8d4616 commit a77d468
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/pages/workspace/WorkspaceInitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Navigation from '../../libs/Navigation/Navigation';
import ROUTES from '../../ROUTES';
import styles from '../../styles/styles';
import Text from '../../components/Text';
import Tooltip from '../../components/Tooltip';
import Icon from '../../components/Icon';
import {
Bank,
Expand Down Expand Up @@ -162,15 +163,17 @@ const WorkspaceInitialPage = ({
]}
onPress={openEditor}
>
<Text
numberOfLines={1}
style={[
styles.displayName,
styles.alignSelfCenter,
]}
>
{policy.name}
</Text>
<Tooltip text={policy.name}>
<Text
numberOfLines={1}
style={[
styles.displayName,
styles.alignSelfCenter,
]}
>
{policy.name}
</Text>
</Tooltip>
</Pressable>
</View>
</View>
Expand Down

0 comments on commit a77d468

Please sign in to comment.