fix homepage pre-rendering broken in #531 (#538)

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:
Kurt Hutten
2021-09-29 17:34:53 +10:00
committed by GitHub
parent 088cfa4f2d
commit 0ce7ce4e76
2 changed files with 15 additions and 13 deletions

View File

@@ -4,11 +4,23 @@ import { useMutation } from '@redwoodjs/web'
import { toast } from '@redwoodjs/web/toast'
import useUser from 'src/helpers/hooks/useUser'
import { CREATE_PROJECT_MUTATION } from 'src/components/ProjectCell/ProjectCell'
import Svg from 'src/components/Svg/Svg'
import { Popover } from '@headlessui/react'
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: {
name: string
sub: string