diff --git a/editor.planx.uk/src/@planx/components/ui.tsx b/editor.planx.uk/src/@planx/components/ui.tsx index a6be6ac9de..4d7130dd99 100644 --- a/editor.planx.uk/src/@planx/components/ui.tsx +++ b/editor.planx.uk/src/@planx/components/ui.tsx @@ -117,7 +117,6 @@ export const MoreInformation = ({ name="info" value={info} onChange={changeField} - placeholder="Why it matters" /> @@ -126,7 +125,6 @@ export const MoreInformation = ({ name="policyRef" value={policyRef} onChange={changeField} - placeholder="Policy source" /> @@ -136,7 +134,6 @@ export const MoreInformation = ({ name="howMeasured" value={howMeasured} onChange={changeField} - placeholder="How it is defined?" /> ), diff --git a/editor.planx.uk/src/ui/editor/InputLabel.tsx b/editor.planx.uk/src/ui/editor/InputLabel.tsx index 615b8b2f12..a1d57d8948 100644 --- a/editor.planx.uk/src/ui/editor/InputLabel.tsx +++ b/editor.planx.uk/src/ui/editor/InputLabel.tsx @@ -1,20 +1,21 @@ import { styled } from "@mui/material/styles"; import Typography from "@mui/material/Typography"; import { visuallyHidden } from "@mui/utils"; -import React, { ReactNode } from "react"; +import React, { PropsWithChildren } from "react"; const Root = styled("label")(() => ({ display: "block", width: "100%", })); -export default function InputLabel(props: { - label: string; - children: ReactNode; - hidden?: boolean; - htmlFor?: string; - id?: string; -}) { +export default function InputLabel( + props: PropsWithChildren<{ + label: string; + hidden?: boolean; + htmlFor?: string; + id?: string; + }>, +) { return (