{ if (app.isAvailable) { onClick(app.id); } }}
- onKeyPress={() => { if (app.isAvailable) { onClick(app.id); } }}
+ tabIndex="-1"
+ onClick={() => onClick(app.id)}
+ onKeyPress={() => onClick(app.id)}
role="radio"
aria-checked={selected}
style={{
@@ -29,48 +31,28 @@ function AppCard({
- {app.isAvailable ? (
-
- ) : (
-
- )}
+
-
- {app.name}
- {app.description}
+
+ {intl.formatMessage(messages[`appName-${app.id}`])}
+
+ {supportText}
+ {intl.formatMessage(messages[`appDescription-${app.id}`])}
-
- {app.supportLevel}
-
);
}
AppCard.propTypes = {
app: PropTypes.shape({
- description: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
- isAvailable: PropTypes.bool.isRequired,
- logo: PropTypes.string.isRequired,
- name: PropTypes.string.isRequired,
- supportLevel: PropTypes.string.isRequired,
+ featureIds: PropTypes.arrayOf(PropTypes.string).isRequired,
+ hasFullSupport: PropTypes.bool.isRequired,
}).isRequired,
onClick: PropTypes.func.isRequired,
selected: PropTypes.bool.isRequired,
diff --git a/src/pages-and-resources/discussions/ConfigFormContainer.jsx b/src/pages-and-resources/discussions/ConfigFormContainer.jsx
index 47fce44c3..cd117c9db 100644
--- a/src/pages-and-resources/discussions/ConfigFormContainer.jsx
+++ b/src/pages-and-resources/discussions/ConfigFormContainer.jsx
@@ -32,7 +32,7 @@ function ConfigFormContainer({
let form = null;
- if (app.id === 'edx-discussions') {
+ if (app.id === 'legacy') {
form = (