make dataSet web only for clarity

This commit is contained in:
Hailey
2024-11-09 16:19:24 -08:00
parent f7ffc3c06f
commit cfeb0f5be2
+4 -2
View File
@@ -5,7 +5,7 @@ import {UITextView} from 'react-native-uitextview'
import {lh, s} from '#/lib/styles' import {lh, s} from '#/lib/styles'
import {TypographyVariant, useTheme} from '#/lib/ThemeContext' import {TypographyVariant, useTheme} from '#/lib/ThemeContext'
import {logger} from '#/logger' import {logger} from '#/logger'
import {isIOS} from '#/platform/detection' import {isIOS, isWeb} from '#/platform/detection'
import {applyFonts, useAlf} from '#/alf' import {applyFonts, useAlf} from '#/alf'
import { import {
childHasEmoji, childHasEmoji,
@@ -85,7 +85,9 @@ export function Text({
uiTextView: selectable && isIOS, uiTextView: selectable && isIOS,
selectable, selectable,
style: flattened, style: flattened,
dataSet: Object.assign({tooltip: title}, dataSet || {}), dataSet: isWeb
? Object.assign({tooltip: title}, dataSet || {})
: undefined,
...props, ...props,
} }
}, [ }, [