Project tags CRUD + fix page metadata

This commit is contained in:
Ahmed Al-Taiar
2024-09-06 22:08:02 -04:00
parent 3204a8319c
commit 1c5a8d026a
42 changed files with 933 additions and 135 deletions

View File

@ -13,6 +13,8 @@ import type {
import { useMutation } from '@redwoodjs/web'
import { toast } from '@redwoodjs/web/toast'
import CellFailure from 'src/components/Cell/CellFailure/CellFailure'
import CellLoading from 'src/components/Cell/CellLoading/CellLoading'
import ProjectForm from 'src/components/Project/ProjectForm'
export const QUERY: TypedDocumentNode<EditProjectById> = gql`
@ -42,10 +44,10 @@ const UPDATE_PROJECT_MUTATION: TypedDocumentNode<
}
`
export const Loading = () => <div>Loading...</div>
export const Loading = () => <CellLoading />
export const Failure = ({ error }: CellFailureProps) => (
<div className="rw-cell-error">{error?.message}</div>
<CellFailure error={error} />
)
export const Success = ({ project }: CellSuccessProps<EditProjectById>) => {