Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
imdeveshshukla committed Sep 2, 2024
1 parent 7ae1067 commit 4b1903a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion frontend/src/assets/LeetCodeLogo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'

const LeetCodeLogo = () => {
return (
<svg width="28" height="28" viewBox="0 0 95 111" fill="none" xmlns="http://www.w3.org/2000/svg" className="h-full w-auto max-w-none"><path d="M68.0063 83.0664C70.5 80.5764 74.5366 80.5829 77.0223 83.0809C79.508 85.579 79.5015 89.6226 77.0078 92.1127L65.9346 103.17C55.7187 113.371 39.06 113.519 28.6718 103.513C28.6117 103.456 23.9861 98.9201 8.72653 83.957C-1.42528 74.0029 -2.43665 58.0749 7.11648 47.8464L24.9282 28.7745C34.4095 18.6219 51.887 17.5122 62.7275 26.2789L78.9048 39.362C81.6444 41.5776 82.0723 45.5985 79.8606 48.3429C77.6488 51.0873 73.635 51.5159 70.8954 49.3003L54.7182 36.2173C49.0488 31.6325 39.1314 32.2622 34.2394 37.5006L16.4274 56.5727C11.7767 61.5522 12.2861 69.574 17.6456 74.8292C28.851 85.8169 37.4869 94.2846 37.4969 94.2942C42.8977 99.496 51.6304 99.4184 56.9331 94.1234L68.0063 83.0664Z" fill="#FFA116"></path><path fillRule="evenodd" clipRule="evenodd" d="M41.1067 72.0014C37.5858 72.0014 34.7314 69.1421 34.7314 65.615C34.7314 62.0879 37.5858 59.2286 41.1067 59.2286H88.1245C91.6454 59.2286 94.4997 62.0879 94.4997 65.615C94.4997 69.1421 91.6454 72.0014 88.1245 72.0014H41.1067Z" fill="#B3B3B3"></path><path fillRule="evenodd" clipRule="evenodd" d="M49.9118 2.02335C52.3173 -0.55232 56.3517 -0.686894 58.9228 1.72277C61.494 4.13244 61.6284 8.17385 59.2229 10.7495L16.4276 56.5729C11.7768 61.552 12.2861 69.5738 17.6453 74.8292L37.4088 94.2091C39.9249 96.6764 39.968 100.72 37.505 103.24C35.042 105.761 31.0056 105.804 28.4895 103.337L8.72593 83.9567C-1.42529 74.0021 -2.43665 58.0741 7.1169 47.8463L49.9118 2.02335Z" fill="white"></path></svg>
<svg width="20" height="20" viewBox="0 0 95 111" fill="none" xmlns="http://www.w3.org/2000/svg" className="h-full w-auto max-w-none"><path d="M68.0063 83.0664C70.5 80.5764 74.5366 80.5829 77.0223 83.0809C79.508 85.579 79.5015 89.6226 77.0078 92.1127L65.9346 103.17C55.7187 113.371 39.06 113.519 28.6718 103.513C28.6117 103.456 23.9861 98.9201 8.72653 83.957C-1.42528 74.0029 -2.43665 58.0749 7.11648 47.8464L24.9282 28.7745C34.4095 18.6219 51.887 17.5122 62.7275 26.2789L78.9048 39.362C81.6444 41.5776 82.0723 45.5985 79.8606 48.3429C77.6488 51.0873 73.635 51.5159 70.8954 49.3003L54.7182 36.2173C49.0488 31.6325 39.1314 32.2622 34.2394 37.5006L16.4274 56.5727C11.7767 61.5522 12.2861 69.574 17.6456 74.8292C28.851 85.8169 37.4869 94.2846 37.4969 94.2942C42.8977 99.496 51.6304 99.4184 56.9331 94.1234L68.0063 83.0664Z" fill="#FFA116"></path><path fillRule="evenodd" clipRule="evenodd" d="M41.1067 72.0014C37.5858 72.0014 34.7314 69.1421 34.7314 65.615C34.7314 62.0879 37.5858 59.2286 41.1067 59.2286H88.1245C91.6454 59.2286 94.4997 62.0879 94.4997 65.615C94.4997 69.1421 91.6454 72.0014 88.1245 72.0014H41.1067Z" fill="#B3B3B3"></path><path fillRule="evenodd" clipRule="evenodd" d="M49.9118 2.02335C52.3173 -0.55232 56.3517 -0.686894 58.9228 1.72277C61.494 4.13244 61.6284 8.17385 59.2229 10.7495L16.4276 56.5729C11.7768 61.552 12.2861 69.5738 17.6453 74.8292L37.4088 94.2091C39.9249 96.6764 39.968 100.72 37.505 103.24C35.042 105.761 31.0056 105.804 28.4895 103.337L8.72593 83.9567C-1.42529 74.0021 -2.43665 58.0741 7.1169 47.8463L49.9118 2.02335Z" fill="white"></path></svg>
)
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/OnclickCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const OnclickCard = ({room}) => {

return (<>
<div >
<button className=' text-2xl xxs:text-3xl rounded-full bg-white p-2 hover:text-blue-700 text-blue-500' onClick={() => setShowCard(!showCard)}><FaAddressCard/></button>
<button className=' text-xl xxs:text-3xl rounded-full bg-white p-2 hover:text-blue-700 text-blue-500' onClick={() => setShowCard(!showCard)}><FaAddressCard size={20}/></button>
{showCard && <Card room={room} setShowCard={setShowCard} />}
</div>
</>
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/components/Posts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ const Posts = ({ id, post, title,topic, body, media, countComment, inRoom, room,
}
if (isLogin) {
let val = 1;
console.log("Inside UPvotes")
console.log(upvoted);
console.log(upvoteNumber)
if (!upvoted) {
setUpvoted(true);
if(insideOverView)
Expand Down Expand Up @@ -170,9 +167,6 @@ const Posts = ({ id, post, title,topic, body, media, countComment, inRoom, room,
return;
}
let val = -1;
console.log("Inside downvotes")
console.log(downvote);
console.log(downvoteNum);
if (!downvote) {
setDownVote(true);
if (upvoted) {
Expand Down
10 changes: 2 additions & 8 deletions frontend/src/components/ProfileLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ const ProfileLayout = ({ isLoading, user }) => {



<div className=' flex items-center gap-3 absolute bottom-3 right-4 xxs:right-8 xs:right-12 sm:right-20 '>
<div className=' flex items-center gap-3 absolute bottom-1 right-4 xxs:right-8 xs:right-12 sm:right-20 '>
{user.showLC &&
<button onClick={() => setshowLCard(true)} className=' bg-black rounded-full flex p-2 items-center justify-center'>
<button onClick={() => setshowLCard(true)} className=' bg-black rounded-full flex p-2 items-center justify-center '>
<LeetCodeLogo />
</button>
}
Expand All @@ -144,11 +144,6 @@ const ProfileLayout = ({ isLoading, user }) => {
<img height={16} width={16} src={cficon} alt="" />
<div className=' text-sm xxs:text-base break-words font-semibold text-gray-800'><Codeforces rating={user?.codeforces} /></div></div>}

{/* {user.showLC && <div className=' absolute bottom-3 right-4 xxs:right-8 xs:right-12 sm:right-20 '>
<button onClick={() => setshowLCard(true)} className=' bg-black rounded-full flex p-2 items-center justify-center'>
<LeetCodeLogo />
</button>
</div>} */}

{showLCard && <div className='fixed top-[74.46px] z-50 left-0 w-[100vw] h-[calc(100vh-74.46px)] bg-black bg-opacity-50 backdrop-blur-md ' >

Expand Down Expand Up @@ -200,7 +195,6 @@ export const handleDpChange = async ({ dpLoc, setBtnLoading, dispatch, setIsOpen
});

if (res.status == 202) {
console.log(res);

dispatch(setUserInfo(res.data));
dispatch(setDp(res.data.dp))
Expand Down

0 comments on commit 4b1903a

Please sign in to comment.