diff options
author | Hailey <me@haileyok.com> | 2024-02-29 15:23:28 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 15:23:28 -0800 |
commit | 39d324ab8bd99ca0e19f3e8f4dea5a61d54e6bb4 (patch) | |
tree | e6276c84d60886234df8f8363a37bbedaab6ca5f /src/view/screens/Storybook/Links.tsx | |
parent | 1a5afccdb809d7a8a2e9ebb356b499135a5ff175 (diff) | |
download | voidsky-39d324ab8bd99ca0e19f3e8f4dea5a61d54e6bb4.tar.zst |
Fix link warnings (#3058)
* fix problems where www.bsky.app shows as a potential danger * never default to disabling warning * remove more defaults * update storybook cases * oops * reverse
Diffstat (limited to 'src/view/screens/Storybook/Links.tsx')
-rw-r--r-- | src/view/screens/Storybook/Links.tsx | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/src/view/screens/Storybook/Links.tsx b/src/view/screens/Storybook/Links.tsx index 3f1806906..f9ecfba55 100644 --- a/src/view/screens/Storybook/Links.tsx +++ b/src/view/screens/Storybook/Links.tsx @@ -4,7 +4,7 @@ import {View} from 'react-native' import {useTheme, atoms as a} from '#/alf' import {ButtonText} from '#/components/Button' import {InlineLink, Link} from '#/components/Link' -import {H1, H3, Text} from '#/components/Typography' +import {H1, Text} from '#/components/Typography' export function Links() { const t = useTheme() @@ -13,31 +13,19 @@ export function Links() { <H1>Links</H1> <View style={[a.gap_md, a.align_start]}> - <InlineLink - to="https://bsky.social" - warnOnMismatchingTextChild - style={[a.text_md]}> - External + <InlineLink to="https://google.com" style={[a.text_lg]}> + https://google.com </InlineLink> - <InlineLink to="https://bsky.social" style={[a.text_md, t.atoms.text]}> - <H3>External with custom children</H3> + <InlineLink to="https://google.com" style={[a.text_lg]}> + External with custom children (google.com) </InlineLink> <InlineLink to="https://bsky.social" style={[a.text_md, t.atoms.text_contrast_low]}> - External with custom children - </InlineLink> - <InlineLink - to="https://bsky.social" - warnOnMismatchingTextChild - style={[a.text_lg]}> - https://bsky.social + Internal (bsky.social) </InlineLink> - <InlineLink - to="https://bsky.app/profile/bsky.app" - warnOnMismatchingTextChild - style={[a.text_md]}> - Internal + <InlineLink to="https://bsky.app/profile/bsky.app" style={[a.text_md]}> + Internal (bsky.app) </InlineLink> <Link |