diff --git a/src/admin/components/forms/RowLabel/index.tsx b/src/admin/components/forms/RowLabel/index.tsx index 57c016e6a5..4c8a1750d7 100644 --- a/src/admin/components/forms/RowLabel/index.tsx +++ b/src/admin/components/forms/RowLabel/index.tsx @@ -4,24 +4,27 @@ import { useWatchForm } from '../Form/context'; const baseClass = 'row-label'; -export const RowLabel: React.FC = (props) => { +export const RowLabel: React.FC = ({ className, ...rest }) => { return ( - - + ); }; -const RowLabelContent: React.FC = (props) => { +const RowLabelContent: React.FC> = (props) => { const { path, - fallback, label, rowNumber, - className, } = props; const { getDataByPath, getSiblingData } = useWatchForm(); @@ -35,37 +38,18 @@ const RowLabelContent: React.FC = (props) => {