Skip to content

Commit 2a542fe

Browse files
committed
replace tooltip with external link
1 parent 70b749c commit 2a542fe

File tree

1 file changed

+9
-33
lines changed

1 file changed

+9
-33
lines changed

packages/app/src/app/pages/Pro/Upgrade.tsx

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
Element,
77
Link as StyledLink,
88
Tooltip,
9+
Icon,
910
Text,
1011
} from '@codesandbox/components';
1112
import { Helmet } from 'react-helmet';
@@ -361,40 +362,15 @@ export const ProUpgrade = () => {
361362
</Caption>
362363

363364
<Caption css={{ paddingTop: 24 }}>
364-
<Element
365-
css={{
366-
color: '#999999',
367-
display: 'flex',
368-
alignItems: 'center',
369-
}}
365+
<StyledLink
366+
as={RouterLink}
367+
to={dashboardUrls.settings(activeTeam)}
370368
>
371-
<StyledLink
372-
as={RouterLink}
373-
to={dashboardUrls.settings(activeTeam)}
374-
>
375-
Go to team settings
376-
</StyledLink>
377-
{/** Temporary copy. */}
378-
<Tooltip label="Manage team members and their roles.">
379-
<Element
380-
css={{ display: 'block', marginLeft: '.5em' }}
381-
>
382-
<svg
383-
width="12"
384-
height="12"
385-
viewBox="0 0 12 12"
386-
fill="none"
387-
xmlns="http://www.w3.org/2000/svg"
388-
style={{ display: 'block' }}
389-
>
390-
<path
391-
d="M6 10.625C3.44568 10.625 1.375 8.55432 1.375 6C1.375 3.44568 3.44568 1.375 6 1.375C8.55432 1.375 10.625 3.44568 10.625 6C10.625 8.55432 8.55432 10.625 6 10.625ZM0.625 6C0.625 8.96853 3.03147 11.375 6 11.375C8.96853 11.375 11.375 8.96853 11.375 6C11.375 3.03147 8.96853 0.625002 6 0.625002C3.03147 0.625002 0.625 3.03147 0.625 6ZM6 8.875C6.20711 8.875 6.375 8.70711 6.375 8.5V6C6.375 5.79289 6.20711 5.625 6 5.625C5.79289 5.625 5.625 5.79289 5.625 6V8.5C5.625 8.70711 5.79289 8.875 6 8.875ZM6 4.5C6.2071 4.5 6.375 4.33211 6.375 4.125L6.375 4.0625C6.375 3.8554 6.20711 3.6875 6 3.6875C5.7929 3.6875 5.625 3.85539 5.625 4.0625L5.625 4.125C5.625 4.3321 5.79289 4.5 6 4.5Z"
392-
fill="#999999"
393-
/>
394-
</svg>
395-
</Element>
396-
</Tooltip>
397-
</Element>
369+
<Stack gap={2}>
370+
<span>Go to team settings</span>
371+
<Icon name="external" size={16} />
372+
</Stack>
373+
</StyledLink>
398374
</Caption>
399375
</Stack>
400376

0 commit comments

Comments
 (0)