From 1f60e1a7486013ad84dcc386d226f4225b67c1d3 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 28 Sep 2023 20:45:11 -0700 Subject: Fix warning --- src/view/com/notifications/FeedItem.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') 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, -- cgit 1.4.1