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-04-06 17:12:48 -0500
committerGitHub <noreply@github.com>2023-04-06 17:12:48 -0500
commit7c99df33adb722ec207d24a9caf7292a95b75154 (patch)
tree2eae8e0fc426cdffbd7b9afe0c69983011aed4c0 /src/view/com/util/Link.tsx
parent1fa9402453d4de5577d4f7fdb0b4d807121d033c (diff)
downloadvoidsky-7c99df33adb722ec207d24a9caf7292a95b75154.tar.zst
Fix to post overflow on web (close #395) (#407)
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r--src/view/com/util/Link.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 703869be1..5215a0231 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -90,6 +90,7 @@ export const TextLink = observer(function TextLink({
   text,
   numberOfLines,
   lineHeight,
+  dataSet,
 }: {
   testID?: string
   type?: TypographyVariant
@@ -98,6 +99,7 @@ export const TextLink = observer(function TextLink({
   text: string | JSX.Element | React.ReactNode
   numberOfLines?: number
   lineHeight?: number
+  dataSet?: any
 }) {
   const {...props} = useLinkProps({to: href})
   const store = useStores()
@@ -117,6 +119,8 @@ export const TextLink = observer(function TextLink({
       style={style}
       numberOfLines={numberOfLines}
       lineHeight={lineHeight}
+      // @ts-ignore web only -prf
+      dataSet={dataSet}
       {...props}>
       {text}
     </Text>