diff --git a/.eslintrc b/.eslintrc
index c323322f56..02ace66fc8 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -4,7 +4,10 @@
"jsx-a11y/anchor-is-valid": false,
"import/no-cycle": [2, { "maxDepth": 1 }],
"react/forbid-prop-types": false,
- "react/no-unknown-property": ["error", { "ignore": ["styleName"] }]
+ "react/no-unknown-property": false,
+ "react/jsx-no-bind": false,
+ "react/destructuring-assignment": false,
+ "react/no-array-index-key": false
},
"env": {
"browser": true
diff --git a/src/shared/components/Contentful/AppComponent/index.jsx b/src/shared/components/Contentful/AppComponent/index.jsx
index f1d84bcd03..a012fb82e9 100644
--- a/src/shared/components/Contentful/AppComponent/index.jsx
+++ b/src/shared/components/Contentful/AppComponent/index.jsx
@@ -18,59 +18,41 @@ import PathSelector from 'components/MemberPath/PathSelector';
const { fireErrorMessage } = errors;
export function AppComponentSwitch(appComponent) {
- const {
- fields: {
- type,
- theme,
- props,
- props: {
- leaderboardApiUrl,
- title,
- podiumSpots,
- isCopilot,
- hasChallengeHistory,
- tcoPointsApiUrl,
- memberLimit,
- isAlgo,
- },
- },
- sys: { id },
- } = appComponent;
- if (type === 'TCO-Leaderboard') {
+ if (appComponent.fields.type === 'TCO-Leaderboard') {
return (
Loading data. This will take a few minutes.
- + {prependProtocol(link.URL)}