From 016323cd4a1c07836c3d9286c785974e931b54fb Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 14 Jul 2023 15:30:06 +0100 Subject: [PATCH] Added temp loading screen --- src/app/components/portfolio/UploadCsvModal.tsx | 2 +- src/app/portfolio/[slug]/temp-loading/page.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/app/portfolio/[slug]/temp-loading/page.tsx diff --git a/src/app/components/portfolio/UploadCsvModal.tsx b/src/app/components/portfolio/UploadCsvModal.tsx index 9000ff5e..bd953670 100644 --- a/src/app/components/portfolio/UploadCsvModal.tsx +++ b/src/app/components/portfolio/UploadCsvModal.tsx @@ -125,7 +125,7 @@ export const SubmitPlan = ({ // We could also trigger it inside of mutateUploadCsv but the nested nature is kind of ugly console.log("Redirect user to loading page"); - router.push("/portfolio/somewhere"); + router.push("/portfolio/temp-loading"); }; return ( diff --git a/src/app/portfolio/[slug]/temp-loading/page.tsx b/src/app/portfolio/[slug]/temp-loading/page.tsx new file mode 100644 index 00000000..afa51253 --- /dev/null +++ b/src/app/portfolio/[slug]/temp-loading/page.tsx @@ -0,0 +1,3 @@ +export default async function () { + return

This is a temporary loading screen

; +}