Fix types
This commit is contained in:
parent
dab8064e26
commit
815941fc82
1 changed files with 4 additions and 9 deletions
|
@ -5,21 +5,18 @@ import Quote from "@editorjs/quote";
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
import { fade } from "@material-ui/core/styles/colorManipulator";
|
import { fade } from "@material-ui/core/styles/colorManipulator";
|
||||||
import Typography from "@material-ui/core/Typography";
|
import Typography from "@material-ui/core/Typography";
|
||||||
import { CreateCSSProperties } from "@material-ui/styles/withStyles";
|
|
||||||
import { FormChange } from "@saleor/hooks/useForm";
|
import { FormChange } from "@saleor/hooks/useForm";
|
||||||
import strikethroughIcon from "@saleor/icons/StrikethroughIcon";
|
import strikethroughIcon from "@saleor/icons/StrikethroughIcon";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
import createGenericInlineTool, {
|
import createGenericInlineTool from "editorjs-inline-tool";
|
||||||
ItalicInlineTool,
|
|
||||||
UnderlineInlineTool
|
|
||||||
} from "editorjs-inline-tool";
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
export interface RichTextEditorProps {
|
export interface RichTextEditorProps {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
error: boolean;
|
error: boolean;
|
||||||
helperText: string;
|
helperText: string;
|
||||||
initial: OutputData;
|
// TODO: Remove any type
|
||||||
|
initial: OutputData | any;
|
||||||
label: string;
|
label: string;
|
||||||
name: string;
|
name: string;
|
||||||
onChange: FormChange;
|
onChange: FormChange;
|
||||||
|
@ -103,9 +100,7 @@ const RichTextEditor: React.FC<RichTextEditorProps> = ({
|
||||||
error,
|
error,
|
||||||
helperText,
|
helperText,
|
||||||
initial,
|
initial,
|
||||||
label,
|
label
|
||||||
name,
|
|
||||||
onChange
|
|
||||||
}) => {
|
}) => {
|
||||||
const classes = useStyles({});
|
const classes = useStyles({});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue