From 81eab163074c30787070a18cb9b88abbfc46782f Mon Sep 17 00:00:00 2001 From: Jeff Chaves <58956521+chavesj@users.noreply.github.com> Date: Tue, 19 Jan 2021 12:02:34 -0500 Subject: [PATCH] Revert "feat: adding alert to notify learners of planned maintenance (#182)" (#183) This reverts commit 8fc7ee87c92ffb30cf08b78da8277311c9a9ce49. --- .env | 1 - .env.development | 1 - src/components/dashboard/Dashboard.jsx | 2 -- .../maintenance-alert/MaintenanceAlert.jsx | 15 --------------- 4 files changed, 19 deletions(-) delete mode 100644 src/components/maintenance-alert/MaintenanceAlert.jsx diff --git a/.env b/.env index cb82111e7e..c1958cf52a 100644 --- a/.env +++ b/.env @@ -1,2 +1 @@ USE_API_CACHE=true -SHOW_MAINTENANCE_ALERT='' diff --git a/.env.development b/.env.development index 74eeb24bbd..ea135a4e88 100644 --- a/.env.development +++ b/.env.development @@ -25,4 +25,3 @@ LOGO_TRADEMARK_URL=https://edx-cdn.org/v3/default/logo-trademark.svg LOGO_WHITE_URL=https://edx-cdn.org/v3/default/logo-white.svg FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico FEATURE_ENROLL_WITH_CODES='true' -SHOW_MAINTENANCE_ALERT='' diff --git a/src/components/dashboard/Dashboard.jsx b/src/components/dashboard/Dashboard.jsx index 0e368b0356..74e0c3559f 100644 --- a/src/components/dashboard/Dashboard.jsx +++ b/src/components/dashboard/Dashboard.jsx @@ -10,7 +10,6 @@ import { MainContent, Sidebar } from '../layout'; import { DashboardMainContent } from './main-content'; import { DashboardSidebar } from './sidebar'; import SubscriptionExpirationModal from './SubscriptionExpirationModal'; -import MaintenanceAlert from '../maintenance-alert/MaintenanceAlert'; export const LICENCE_ACTIVATION_MESSAGE = 'Your license has been successfully activated.'; @@ -40,7 +39,6 @@ export default function Dashboard() { return ( <> -
{state?.activationSuccess && renderLicenseActivationSuccess()}
diff --git a/src/components/maintenance-alert/MaintenanceAlert.jsx b/src/components/maintenance-alert/MaintenanceAlert.jsx deleted file mode 100644 index c3a9088748..0000000000 --- a/src/components/maintenance-alert/MaintenanceAlert.jsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react'; -import { Alert } from '@edx/paragon'; - -export default () => { - if (!process.env.SHOW_MAINTENANCE_ALERT) { - return null; - } - - return ( - - edX Subscriptions and Codes will be unavailable due to planned maintenance on - Tuesday, January 19th between 10am and 11:30am EST. - - ); -};