/** * * EditForm * */ import React from 'react'; import { findIndex, get, isEmpty, map } from 'lodash'; import PropTypes from 'prop-types'; // You can find these components in either // ./node_modules/strapi-helper-plugin/lib/src // or strapi/packages/strapi-helper-plugin/lib/src import { InputsIndex as Input } from 'strapi-helper-plugin'; import styles from './styles.scss'; class EditForm extends React.Component { getProviderForm = () => get( this.props.settings, ['providers', this.props.selectedProviderIndex, 'auth'], {}, ); generateSelectOptions = () => Object.keys(get(this.props.settings, 'providers', {})).reduce( (acc, current) => { const option = { id: get(this.props.settings, ['providers', current, 'name']), value: get(this.props.settings, ['providers', current, 'provider']), }; acc.push(option); return acc; }, [], ); render() { return (