From 2bcbd6a717ecc65030e57ba506f7b894145e43d1 Mon Sep 17 00:00:00 2001 From: Jason Wesson Date: Fri, 29 Sep 2023 12:02:23 -0700 Subject: [PATCH] fix: add authenticatedpageroute so learner can create a shared record link (#187) * fix: add authenticatedpageroute so learner can create a shared record link and be redirected to login when no longer authenticated --------- Co-authored-by: Jason Wesson --- src/index.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.jsx b/src/index.jsx index f31cc45..3cd64c3 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -6,7 +6,7 @@ import { Routes, Route } from 'react-router-dom'; import { APP_INIT_ERROR, APP_READY, subscribe, initialize, mergeConfig, getConfig, } from '@edx/frontend-platform'; -import { AppProvider, ErrorPage } from '@edx/frontend-platform/react'; +import { AppProvider, ErrorPage, AuthenticatedPageRoute } from '@edx/frontend-platform/react'; import { HelmetProvider } from 'react-helmet-async'; import Header from '@edx/frontend-component-header'; import Footer from '@edx/frontend-component-footer'; @@ -29,12 +29,12 @@ subscribe(APP_READY, () => { } + element={} /> {getConfig().ENABLE_VERIFIABLE_CREDENTIALS && ( } + element={} /> )} { /> } + element={} /> ) : (