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