Skip to content

Commit

Permalink
fixed The resource link has problem shelcia#116
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshat162001 committed Jan 19, 2024
1 parent de58fe3 commit f72d0d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/src/pages/auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Login = () => {
noValidate
onSubmit={handleSubmit}
style={{
width: "100%",
width: "100%"
}}
>
<TextField
Expand All @@ -102,13 +102,13 @@ const Login = () => {
/>
<Button
variant="contained"
sx={{ display: "block", mt: 2, mx: "auto" }}
sx={{ display: "block", mt: 2, mx: "auto"}}
type="submit"
disabled={loading}
>
{loading ? <CustomLoaderButton /> : "Login"}
</Button>
<Typography variant="h6" component="p" sx={{ mt: 2, mb: 1 }}>
<Typography variant="h6" component="p">
{/* eslint-disable-next-line react/no-unescaped-entities */}
Don't have an account ? Then{" "}
<Link to="/signup" style={{ color: "deepskyblue" }}>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/dashboard/Collection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ const Collection = () => {
</Typography>
<Alert sx={{ mb: 2 }}>
<AlertTitle sx={{ fontWeight: 600 }}>API endpoint</AlertTitle>
<code>{BACKEND_URL}/user/:endpoint</code>
<code>{`${BACKEND_URL}/resource/:endpoint`}</code>
<CopyButton
sx={{ ml: 1 }}
disabled={isCopied ? true : false}
onClick={() => {
handleCopyClick(`${BACKEND_URL}/user/:endpoint`);
handleCopyClick(`${BACKEND_URL}/resource/:endpoint`);
}}
>
{isCopied ? "Done" : "Copy"}
Expand Down

0 comments on commit f72d0d0

Please sign in to comment.