about summary refs log tree commit diff
path: root/src/view/com/util/Link.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-05-02 23:32:16 -0500
committerGitHub <noreply@github.com>2023-05-02 23:32:16 -0500
commit883700e09029bd0d9221edb9910d065da5786fe0 (patch)
treecdf6c849c8b378dffcfc305834a4b31ecbefb7ae /src/view/com/util/Link.tsx
parent2eb0d8c095b70b7ec39b7a1acbd126457dea9322 (diff)
downloadvoidsky-883700e09029bd0d9221edb9910d065da5786fe0.tar.zst
[APP-601] Add muted accounts list (#565)
* Add muted accounts list

* Fix icon for muted accounts
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r--src/view/com/util/Link.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 503e22084..253f80bdc 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -37,6 +37,7 @@ interface Props extends ComponentProps<typeof TouchableOpacity> {
   children?: React.ReactNode
   noFeedback?: boolean
   asAnchor?: boolean
+  anchorNoUnderline?: boolean
 }
 
 export const Link = observer(function Link({
@@ -48,6 +49,7 @@ export const Link = observer(function Link({
   noFeedback,
   asAnchor,
   accessible,
+  anchorNoUnderline,
   ...props
 }: Props) {
   const store = useStores()
@@ -78,6 +80,14 @@ export const Link = observer(function Link({
       </TouchableWithoutFeedback>
     )
   }
+
+  if (anchorNoUnderline) {
+    // @ts-ignore web only -prf
+    props.dataSet = props.dataSet || {}
+    // @ts-ignore web only -prf
+    props.dataSet.noUnderline = 1
+  }
+
   return (
     <TouchableOpacity
       testID={testID}