From 584c29649fef338e83a9895d350dc92ef500b26c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 3 Oct 2024 11:47:45 -0500 Subject: [PATCH] Rm BottomSheetLink --- src/components/Link.tsx | 39 ------------------- .../ReportDialog/SelectReportOptionView.tsx | 6 +-- 2 files changed, 3 insertions(+), 42 deletions(-) diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 5a66767243..447833a239 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -241,45 +241,6 @@ export function Link({ ) } -export function BottomSheetLink({ - children, - to, - action = 'push', - onPress: outerOnPress, - download, - ...rest -}: LinkProps) { - const {href, isExternal, onPress} = useLink({ - to, - displayText: typeof children === 'string' ? children : '', - action, - onPress: outerOnPress, - }) - - return ( - - ) -} - export type InlineLinkProps = React.PropsWithChildren< BaseLinkProps & TextStyleProp & Pick > & diff --git a/src/components/ReportDialog/SelectReportOptionView.tsx b/src/components/ReportDialog/SelectReportOptionView.tsx index 7e27cacf0c..169c07d732 100644 --- a/src/components/ReportDialog/SelectReportOptionView.tsx +++ b/src/components/ReportDialog/SelectReportOptionView.tsx @@ -5,7 +5,7 @@ import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {ReportOption, useReportOptions} from '#/lib/moderation/useReportOptions' -import {BottomSheetLink} from '#/components/Link' +import {Link} from '#/components/Link' import {DMCA_LINK} from '#/components/ReportDialog/const' export {useDialogControl as useReportDialogControl} from '#/components/Dialog' @@ -129,7 +129,7 @@ export function SelectReportOptionView({ ]}> Need to report a copyright violation? - View details - + )}