import form project cell which in tern had dependencies that are not pre render friendly was causing issues
This commit was merged in pull request #538.
This commit is contained in:
@@ -4,11 +4,23 @@ import { useMutation } from '@redwoodjs/web'
|
|||||||
import { toast } from '@redwoodjs/web/toast'
|
import { toast } from '@redwoodjs/web/toast'
|
||||||
|
|
||||||
import useUser from 'src/helpers/hooks/useUser'
|
import useUser from 'src/helpers/hooks/useUser'
|
||||||
import { CREATE_PROJECT_MUTATION } from 'src/components/ProjectCell/ProjectCell'
|
|
||||||
import Svg from 'src/components/Svg/Svg'
|
import Svg from 'src/components/Svg/Svg'
|
||||||
import { Popover } from '@headlessui/react'
|
import { Popover } from '@headlessui/react'
|
||||||
import { CadPackageType } from 'src/components/CadPackage/CadPackage'
|
import { CadPackageType } from 'src/components/CadPackage/CadPackage'
|
||||||
|
|
||||||
|
export const CREATE_PROJECT_MUTATION = gql`
|
||||||
|
mutation CreateProjectMutation($input: CreateProjectInput!) {
|
||||||
|
createProject(input: $input) {
|
||||||
|
id
|
||||||
|
title
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
userName
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
|
||||||
const menuOptions: {
|
const menuOptions: {
|
||||||
name: string
|
name: string
|
||||||
sub: string
|
sub: string
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { navigate, routes } from '@redwoodjs/router'
|
|||||||
import { useAuth } from '@redwoodjs/auth'
|
import { useAuth } from '@redwoodjs/auth'
|
||||||
import { useIdeState } from 'src/helpers/hooks/useIdeState'
|
import { useIdeState } from 'src/helpers/hooks/useIdeState'
|
||||||
import { IdeContext } from 'src/helpers/hooks/useIdeContext'
|
import { IdeContext } from 'src/helpers/hooks/useIdeContext'
|
||||||
|
import { CREATE_PROJECT_MUTATION } from 'src/components/NavPlusButton/NavPlusButton'
|
||||||
|
|
||||||
import ProjectProfile from 'src/components/ProjectProfile/ProjectProfile'
|
import ProjectProfile from 'src/components/ProjectProfile/ProjectProfile'
|
||||||
import { QUERY as PROJECT_REACTION_QUERY } from 'src/components/ProjectReactionsCell'
|
import { QUERY as PROJECT_REACTION_QUERY } from 'src/components/ProjectReactionsCell'
|
||||||
@@ -76,18 +77,7 @@ const UPDATE_PROJECT_MUTATION = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
export const CREATE_PROJECT_MUTATION = gql`
|
|
||||||
mutation CreateProjectMutation($input: CreateProjectInput!) {
|
|
||||||
createProject(input: $input) {
|
|
||||||
id
|
|
||||||
title
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
userName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`
|
|
||||||
const TOGGLE_REACTION_MUTATION = gql`
|
const TOGGLE_REACTION_MUTATION = gql`
|
||||||
mutation ToggleReactionMutation($input: ToggleProjectReactionInput!) {
|
mutation ToggleReactionMutation($input: ToggleProjectReactionInput!) {
|
||||||
toggleProjectReaction(input: $input) {
|
toggleProjectReaction(input: $input) {
|
||||||
|
|||||||
Reference in New Issue
Block a user