From 204ae3766b2f5533448ea0dd62db77c0c73a5037 Mon Sep 17 00:00:00 2001 From: PatrikKozak Date: Thu, 14 Sep 2023 14:37:34 -0400 Subject: [PATCH] chore: gets rid of unique key prop & prop className did not match warnings --- .../src/app/_components/content/contentBlock.tsx | 6 +++--- .../src/app/_components/content/formBlock.tsx | 8 ++++---- .../src/app/_components/content/mediaBlock.tsx | 10 +++++----- .../app/_components/content/mediaContentBlock.tsx | 14 +++++++------- templates/developer-portfolio/src/app/layout.tsx | 2 +- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/templates/developer-portfolio/src/app/_components/content/contentBlock.tsx b/templates/developer-portfolio/src/app/_components/content/contentBlock.tsx index c297751927..0f896165d8 100644 --- a/templates/developer-portfolio/src/app/_components/content/contentBlock.tsx +++ b/templates/developer-portfolio/src/app/_components/content/contentBlock.tsx @@ -1,4 +1,4 @@ -import { FC } from 'react' +import { FC, Fragment } from 'react' import { Block, BlockProps } from '../ui/block' import { PayloadLink, PayloadLinkType } from './link' @@ -16,7 +16,7 @@ interface ContentBlockProps { export const ContentBlock: FC = ({ contentFields }) => { return ( - <> + {contentFields.map(({ richText, size, id, enableLink, link }) => { let content = @@ -30,6 +30,6 @@ export const ContentBlock: FC = ({ contentFields }) => { ) })} - + ) } diff --git a/templates/developer-portfolio/src/app/_components/content/formBlock.tsx b/templates/developer-portfolio/src/app/_components/content/formBlock.tsx index 9dcc2cb5bb..5290164c7a 100644 --- a/templates/developer-portfolio/src/app/_components/content/formBlock.tsx +++ b/templates/developer-portfolio/src/app/_components/content/formBlock.tsx @@ -1,5 +1,5 @@ 'use client' -import React, { FC, useState } from 'react' +import React, { FC, Fragment, useState } from 'react' import { useForm } from 'react-hook-form' import { Data } from 'payload/dist/admin/components/forms/Form/types' @@ -170,7 +170,7 @@ export const FormBlock: FC = props => { } return ( - <> +