submit buttons are availble in the widget inspector (#4932)

This commit is contained in:
Arpit 2022-12-12 14:50:18 +05:30 committed by GitHub
parent f9ae9e9ac4
commit 8b467026d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -5,18 +5,18 @@ import { renderElement } from '../Utils';
// eslint-disable-next-line import/no-unresolved
import i18next from 'i18next';
export const Form = ({ componentMeta, darkMode, ...restProps }) => {
const {
layoutPropertyChanged,
component,
paramUpdated,
dataQueries,
currentState,
eventsChanged,
apps,
allComponents,
} = restProps;
export const Form = ({
componentMeta,
darkMode,
layoutPropertyChanged,
component,
paramUpdated,
dataQueries,
currentState,
eventsChanged,
apps,
allComponents,
}) => {
const properties = Object.keys(componentMeta.properties);
const events = Object.keys(componentMeta.events);
const validations = Object.keys(componentMeta.validation || {});

View file

@ -332,6 +332,7 @@ export const Inspector = ({
eventsChanged={eventsChanged}
apps={apps}
pages={pages}
allComponents={allComponents}
/>
)}
</Tab>
@ -483,6 +484,9 @@ const GetAccordion = React.memo(
case 'Icon':
return <Icon {...restProps} />;
case 'Form':
return <Form {...restProps} />;
default: {
return <DefaultComponent {...restProps} />;
}