Add social preview page

This commit is contained in:
Kurt Hutten
2021-07-30 21:04:28 +10:00
parent 3f310a9aaf
commit e4bf8f5e81
7 changed files with 213 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ export const useSaveCode = () => {
setNowError(!!error)
}
if (!currentUser || project?.user?.id !== currentUser?.sub) {
return () => console.log('not your project')
return () => {}
}
return (input: Prisma.ProjectUpdateInput) => {
updateProject({ variables: { id: project.id, input } })