Added more types
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user