From 49395393cd082c1fd2f5b99da0c35b79a70fb27e Mon Sep 17 00:00:00 2001 From: Hailey Date: Sat, 5 Oct 2024 14:43:21 -0700 Subject: [PATCH] rm swipeable row --- .../Messages/components/SwipeableRow.tsx | 44 ------------------- .../Messages/components/SwipeableRow.web.tsx | 1 - 2 files changed, 45 deletions(-) delete mode 100644 src/screens/Messages/components/SwipeableRow.tsx delete mode 100644 src/screens/Messages/components/SwipeableRow.web.tsx diff --git a/src/screens/Messages/components/SwipeableRow.tsx b/src/screens/Messages/components/SwipeableRow.tsx deleted file mode 100644 index 783f9a588d..0000000000 --- a/src/screens/Messages/components/SwipeableRow.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import React, {useCallback} from 'react' -import {View} from 'react-native' -import Swipeable from 'react-native-gesture-handler/ReanimatedSwipeable' -import {msg} from '@lingui/macro' -import {useLingui} from '@lingui/react' - -import {atoms as a, useTheme} from '#/alf' -import {Button} from '#/components/Button' -import {Trash_Stroke2_Corner2_Rounded as TrashIcon} from '#/components/icons/Trash' - -export function SwipeableRow({ - children, - onDelete, -}: { - children: React.ReactNode - onDelete: () => void -}) { - const {_} = useLingui() - const t = useTheme() - - const renderActions = useCallback(() => { - return ( - - ) - }, [_, t, onDelete]) - - return ( - - {children} - - ) -} diff --git a/src/screens/Messages/components/SwipeableRow.web.tsx b/src/screens/Messages/components/SwipeableRow.web.tsx deleted file mode 100644 index 5464fbba41..0000000000 --- a/src/screens/Messages/components/SwipeableRow.web.tsx +++ /dev/null @@ -1 +0,0 @@ -export {View as SwipeableRow} from 'react-native'