diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-09-28 20:45:11 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-09-28 20:45:11 -0700 |
commit | 1f60e1a7486013ad84dcc386d226f4225b67c1d3 (patch) | |
tree | 8ef8843f8a6edb9bb590e6fd82d7b646151e23bd /src | |
parent | 2aae37d67bfd387802724a2a94825716746389a4 (diff) | |
download | voidsky-1f60e1a7486013ad84dcc386d226f4225b67c1d3.tar.zst |
Fix warning
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/notifications/FeedItem.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index c51335c72..c38ab3fd5 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -39,6 +39,7 @@ import {useAnimatedValue} from 'lib/hooks/useAnimatedValue' import {formatCount} from '../util/numeric/format' import {makeProfileLink} from 'lib/routes/links' import {TimeElapsed} from '../util/TimeElapsed' +import {isWeb} from 'platform/detection' const MAX_AUTHORS = 5 @@ -450,10 +451,12 @@ const styles = StyleSheet.create({ overflowHidden: { overflow: 'hidden', }, - pointer: { - // @ts-ignore web only - cursor: 'pointer', - }, + pointer: isWeb + ? { + // @ts-ignore web only + cursor: 'pointer', + } + : {}, outer: { padding: 10, |