From 41d160dca9abb6652f3e5adf0e7ace3f481f6148 Mon Sep 17 00:00:00 2001 From: Pranav Rajveer Date: Mon, 11 Mar 2024 14:36:14 +0530 Subject: [PATCH] fix: added the borders and made it look decent, padding and all. --- src/components/NotionRenderer.tsx | 7 ++++++- src/components/Signin.tsx | 14 +++++++------- src/components/VideoPlayer2.tsx | 2 +- src/components/comment/CommentInputForm.tsx | 2 +- src/components/comment/Comments.tsx | 11 +++++++---- 5 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/NotionRenderer.tsx b/src/components/NotionRenderer.tsx index 138bc1d34..5469d0d2e 100644 --- a/src/components/NotionRenderer.tsx +++ b/src/components/NotionRenderer.tsx @@ -31,7 +31,12 @@ export const NotionRenderer = ({ id }: { id: string }) => { return (
- +
); diff --git a/src/components/Signin.tsx b/src/components/Signin.tsx index c858ee292..70358f58f 100644 --- a/src/components/Signin.tsx +++ b/src/components/Signin.tsx @@ -24,10 +24,10 @@ const Signin = () => { const password = useRef(''); const handleSubmit = async (e?: React.FormEvent) => { - if(e){ + if (e) { e.preventDefault(); } - + if (!email.current || !password.current) { setRequiredError({ emailReq: email.current ? false : true, @@ -36,7 +36,6 @@ const Signin = () => { return; } - const res = await signIn('credentials', { username: email.current, password: password.current, @@ -96,12 +95,13 @@ const Signin = () => { })); password.current = e.target.value; }} - onKeyDown={async (e)=>{ - if(e.key === "Enter"){ + onKeyDown={async (e) => { + if (e.key === 'Enter') { setIsPasswordVisible(false); handleSubmit(); - }}} - /> + } + }} + />