Skip to content

Commit

Permalink
feat: v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
97vack committed May 9, 2024
1 parent 675f20c commit 5d5341c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/template/FormItemAtom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ import '../style/form.css';
type FormItemProps = GlobalProps.FormItemProps;

export const RequireIndicator = React.memo(
(props: { requireIndicator?: FormItemProps['requireIndicator'] }) => {
(props: { requireIndicator?: any }) => {
const { requireIndicator } = props;

if (!requireIndicator) return null;
if (requireIndicator === true) {
return <span className="react-form-simple-indicator">*</span>;
}
if (requireIndicator) {
return requireIndicator;
}
return null;
return requireIndicator;
},
);

Expand Down

0 comments on commit 5d5341c

Please sign in to comment.