From f72d0d09847316e2687b94c866a4f58ffe5a70a8 Mon Sep 17 00:00:00 2001 From: Akshat Verma <112319520+Akshat162001@users.noreply.github.com> Date: Fri, 19 Jan 2024 18:59:44 +0530 Subject: [PATCH 1/2] fixed The resource link has problem #116 --- frontend/src/pages/auth/Login.jsx | 6 +++--- frontend/src/pages/dashboard/Collection.jsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/auth/Login.jsx b/frontend/src/pages/auth/Login.jsx index 1c148b8..2fd8a22 100644 --- a/frontend/src/pages/auth/Login.jsx +++ b/frontend/src/pages/auth/Login.jsx @@ -77,7 +77,7 @@ const Login = () => { noValidate onSubmit={handleSubmit} style={{ - width: "100%", + width: "100%" }} > { /> - + {/* eslint-disable-next-line react/no-unescaped-entities */} Don't have an account ? Then{" "} diff --git a/frontend/src/pages/dashboard/Collection.jsx b/frontend/src/pages/dashboard/Collection.jsx index c24070d..44b9e65 100644 --- a/frontend/src/pages/dashboard/Collection.jsx +++ b/frontend/src/pages/dashboard/Collection.jsx @@ -144,12 +144,12 @@ const Collection = () => { API endpoint - {BACKEND_URL}/user/:endpoint + {`${BACKEND_URL}/resource/:endpoint`} { - handleCopyClick(`${BACKEND_URL}/user/:endpoint`); + handleCopyClick(`${BACKEND_URL}/resource/:endpoint`); }} > {isCopied ? "Done" : "Copy"} From 681471872c6d9dd55e11327becf60772e4e4716c Mon Sep 17 00:00:00 2001 From: Akshat Verma <112319520+Akshat162001@users.noreply.github.com> Date: Fri, 19 Jan 2024 19:03:59 +0530 Subject: [PATCH 2/2] #116 isssue --- frontend/src/pages/dashboard/Collection.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/pages/dashboard/Collection.jsx b/frontend/src/pages/dashboard/Collection.jsx index 44b9e65..62d3dfa 100644 --- a/frontend/src/pages/dashboard/Collection.jsx +++ b/frontend/src/pages/dashboard/Collection.jsx @@ -144,7 +144,9 @@ const Collection = () => { API endpoint + {`${BACKEND_URL}/resource/:endpoint`} + // this above code might work