How to use the @talend/react-containers/lib/ComponentForm/kit.flatten function in @talend/react-containers

To help you get started, we’ve selected a few @talend/react-containers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / component-runtime / component-tools-webapp / src / main / frontend / src / components / Detail / Detail.component.js View on Github external
notSelected = ();
    }  else {
        const lang = new URLSearchParams(window.location.search).get('language') || 'en';
        form = (
             0 ? '&' : '?'}language=${lang}`}
                triggerURL={`/api/v1/application/action`}
                lang={lang}
                customTriggers={registry}
            />
        );
        if (props.submitted) {
            const configuration = kit.flatten(props.uiSpec.properties);
            submitted = (
                <div>
                    <pre>{JSON.stringify(configuration, undefined, 2)}</pre>
                </div>
            );
        }
    }
    return (
        <div>
            <div>
                {notSelected}
                {form}
            </div>
            <div>
                {submitted}
            </div></div>