* feat: Make "Pages & Resources" course apps into plugins * feat: move ora_settings * feat: move proctoring * feat: move progress * feat: move teams * feat: move wiki * feat: move Xpert settings * fix: add webpack.prod.config.js * fix: clean up unused parts of package.json files * feat: Add an error message when displaying a Course App Plugin fails * chore: fix various eslint warnings * chore: fix jest tests * fix: error preventing "npm ci" from working * feat: better tests for <SettingsComponent> * chore: move xpert_unit_summary into same dir as other plugins * fix: eslint-import-resolver-webpack is a dev dependency * chore: move learning_assistant to be a plugin too * feat: for compatibility, install 2U plugins by default * fix: bug with learning_assistant package.json
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
import React from 'react';
|
|
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
|
|
import PropTypes from 'prop-types';
|
|
import FormikControl from 'CourseAuthoring/generic/FormikControl';
|
|
|
|
import messages from './messages';
|
|
|
|
const LiveCommonFields = ({
|
|
intl,
|
|
values,
|
|
}) => (
|
|
<>
|
|
<p className="pb-2">{intl.formatMessage(messages.formInstructions)}</p>
|
|
<FormikControl
|
|
name="consumerKey"
|
|
value={values.consumerKey}
|
|
floatingLabel={intl.formatMessage(messages.consumerKey)}
|
|
className="pb-1"
|
|
type="input"
|
|
/>
|
|
<FormikControl
|
|
name="consumerSecret"
|
|
value={values.consumerSecret}
|
|
floatingLabel={intl.formatMessage(messages.consumerSecret)}
|
|
className="pb-1"
|
|
type="password"
|
|
/>
|
|
<FormikControl
|
|
name="launchUrl"
|
|
value={values.launchUrl}
|
|
floatingLabel={intl.formatMessage(messages.launchUrl)}
|
|
className="pb-1"
|
|
type="input"
|
|
/>
|
|
</>
|
|
);
|
|
|
|
LiveCommonFields.propTypes = {
|
|
intl: intlShape.isRequired,
|
|
values: PropTypes.shape({
|
|
consumerKey: PropTypes.string,
|
|
consumerSecret: PropTypes.string,
|
|
launchUrl: PropTypes.string,
|
|
launchEmail: PropTypes.string,
|
|
}).isRequired,
|
|
};
|
|
|
|
export default injectIntl(LiveCommonFields);
|