File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ SUPABASE_URL =
2+ SUPABASE_ANON_KEY =
Original file line number Diff line number Diff line change 1- import { TrashIcon } from "@heroicons/react/outline" ;
2- import { Auth } from "@supabase/ui" ;
1+ import React from "react" ;
32import Link from "next/link" ;
43import { useRouter } from "next/router" ;
5- import React from "react" ;
4+
65import { useMutation } from "urql" ;
76
7+ import { Auth } from "@supabase/ui" ;
8+ import { TrashIcon } from "@heroicons/react/outline" ;
9+
810import { DocumentType , gql } from "../gql" ;
911import { timeAgo } from "./time-ago" ;
1012
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ const Item: NextPage = () => {
117117 < FeedItem post = { post . node } key = { post . cursor } />
118118
119119 < div className = "max-w-md" >
120- < PostCommentForm postId = { post . node . id } />
120+ { user && < PostCommentForm postId = { post . node . id } /> }
121121
122122 < div className = "mt-10" >
123123 { post . node ?. comments ?. edges . map ( ( edge ) => (
You can’t perform that action at this time.
0 commit comments