From 1eedef348616470665ae866d9457261480f4b1d7 Mon Sep 17 00:00:00 2001 From: Binod Pant Date: Fri, 12 Mar 2021 08:04:43 -0500 Subject: [PATCH] feat: replace local history with one from platform (#499) --- src/components/App/index.jsx | 85 +++++++++++++++++------------------- src/data/history.js | 3 -- src/utils.js | 2 +- 3 files changed, 42 insertions(+), 48 deletions(-) delete mode 100644 src/data/history.js diff --git a/src/components/App/index.jsx b/src/components/App/index.jsx index ce4387460c..ddce7b3f03 100644 --- a/src/components/App/index.jsx +++ b/src/components/App/index.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Switch, Router } from 'react-router-dom'; +import { Switch } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import { AuthenticatedPageRoute, PageRoute, AppProvider } from '@edx/frontend-platform/react'; @@ -16,55 +16,52 @@ import SupportPage from '../SupportPage'; import { ToastsProvider, Toasts } from '../Toasts'; import store from '../../data/store'; -import history from '../../data/history'; const AppWrapper = () => { const apiClient = getAuthenticatedHttpClient(); return ( - - - + + +
+ + + } + authenticatedAPIClient={apiClient} + redirect={`${process.env.BASE_URL}/enterprises`} /> - -
- - - } - authenticatedAPIClient={apiClient} - redirect={`${process.env.BASE_URL}/enterprises`} - /> - - - - } - authenticatedAPIClient={apiClient} - redirect={process.env.BASE_URL} - /> - - -