From 9f7c9649578fb28116b3eba6a3be181f39d6c0a5 Mon Sep 17 00:00:00 2001 From: hinakhadim Date: Tue, 27 Aug 2024 12:43:10 +0500 Subject: [PATCH] refactor: remove unused useEffect in env.config.jsx and add comment --- tutorindigo/plugin.py | 2 ++ tutorindigo/templates/indigo/env.config.jsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tutorindigo/plugin.py b/tutorindigo/plugin.py index e41b6883..315b3605 100644 --- a/tutorindigo/plugin.py +++ b/tutorindigo/plugin.py @@ -105,6 +105,8 @@ def _override_openedx_docker_image( hooks.Filters.ENV_PATCHES.add_items( [ ( + # MFE will install header version 3.0.x and installing indigo-footer as a + # separate package for use in env.config.jsx "mfe-dockerfile-post-npm-install-learning", """ RUN npm install '@edx/brand@npm:@edly-io/indigo-brand-openedx@^2.0.0'{% if INDIGO_ENABLE_DARK_THEME %} --theme=dark{% endif %} diff --git a/tutorindigo/templates/indigo/env.config.jsx b/tutorindigo/templates/indigo/env.config.jsx index d43741b2..87b96313 100644 --- a/tutorindigo/templates/indigo/env.config.jsx +++ b/tutorindigo/templates/indigo/env.config.jsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import Footer from '@edly-io/indigo-frontend-component-footer'; import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework'; @@ -24,4 +24,4 @@ const config = { }, }; -export default config; \ No newline at end of file +export default config;