Fixed CMSFieldProps exmaple import

This commit is contained in:
francesco
2020-05-04 00:23:07 +02:00
parent 147806eeba
commit d73cbdac7a

View File

@@ -6,7 +6,7 @@ import {
InputLabel
} from "@material-ui/core";
import React, { ReactElement } from "react";
import { CMSFieldProps } from "../../../src/form";
import { CMSFieldProps } from "firecms";
export default function CustomLargeTextField({
property,
@@ -15,7 +15,6 @@ export default function CustomLargeTextField({
...props
}: CMSFieldProps<string>)
: ReactElement {
console.log("CustomLargeTextField");
const fieldError = getIn(errors, field.name);
const showError = getIn(touched, field.name) && !!fieldError;