From ef77c7c9a3de446975b53ee6485a7b8d2f3377da Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Sat, 27 Aug 2022 19:05:46 -0700 Subject: [PATCH] Clean up markup in CopyLinkDateTimeComponent (#809) --- web/components/feed/copy-link-date-time.tsx | 36 ++++++++------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/web/components/feed/copy-link-date-time.tsx b/web/components/feed/copy-link-date-time.tsx index cea8300a..c5f943a1 100644 --- a/web/components/feed/copy-link-date-time.tsx +++ b/web/components/feed/copy-link-date-time.tsx @@ -6,7 +6,6 @@ import Link from 'next/link' import { fromNow } from 'web/lib/util/time' import { ToastClipboard } from 'web/components/toast-clipboard' import { LinkIcon } from '@heroicons/react/outline' -import clsx from 'clsx' export function CopyLinkDateTimeComponent(props: { prefix: string @@ -29,26 +28,19 @@ export function CopyLinkDateTimeComponent(props: { setTimeout(() => setShowToast(false), 2000) } return ( -
- - - copyLinkToComment(event)} - className={'mx-1 cursor-pointer'} - > - - {fromNow(createdTime)} - {showToast && ( - - )} - - - - - -
+ + + + {fromNow(createdTime)} + {showToast && } + + + + ) }