diff --git a/functions/src/create-notification.ts b/functions/src/create-notification.ts index bd77f690..57f5d6ef 100644 --- a/functions/src/create-notification.ts +++ b/functions/src/create-notification.ts @@ -65,8 +65,7 @@ export const createNotification = async ( // TODO: Update for liquidity. // TODO: Find tagged users. // TODO: Find replies to comments. - // TODO: Filter bets for only open bets. - // TODO: Notify users of their own closed but not resolved contracts. + // TODO: Filter bets for only open bets if ( sourceType === 'comment' || sourceType === 'answer' || diff --git a/web/components/feed/copy-link-date-time.tsx b/web/components/feed/copy-link-date-time.tsx index 0ffac52e..60395801 100644 --- a/web/components/feed/copy-link-date-time.tsx +++ b/web/components/feed/copy-link-date-time.tsx @@ -8,15 +8,13 @@ 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: { contract: Contract createdTime: number elementId: string - className?: string }) { - const { contract, elementId, createdTime, className } = props + const { contract, elementId, createdTime } = props const [showToast, setShowToast] = useState(false) function copyLinkToComment( @@ -32,7 +30,7 @@ export function CopyLinkDateTimeComponent(props: { setTimeout(() => setShowToast(false), 2000) } return ( -