Added more types

This commit is contained in:
2023-09-03 00:09:44 +02:00
parent a83cc7d8c6
commit ff63fa888b
12 changed files with 1490 additions and 1473 deletions

View File

@@ -4,8 +4,9 @@ import { Section } from "../util/section";
import type { Template } from "tinacms";
import { PageBlocksTestimonial } from "../../tina/__generated__/types";
import { tinaField } from "tinacms/dist/react";
import { PageBlockFunction } from "../blocks-renderer";
export const Testimonial = ({ data }: { data: PageBlocksTestimonial }) => {
export const Testimonial: PageBlockFunction<PageBlocksTestimonial> = ({ data }) => {
return (
<Section color={ data.color }>
<Container size="large">