Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pratyush3124 committed Mar 15, 2024
1 parent 0bdfa39 commit 33a7749
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/api/event1/getTeamData/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function GET(req) {
const team = await Event1.findById(teamId).populate('members');
console.log("^^^^^^",team);
if (!team) {
return NextResponse.json({ message: 'Team is not there ' });
return NextResponse.json({ message: 'Team is not there' }, {status:201});
}

return NextResponse.json({
Expand Down
2 changes: 1 addition & 1 deletion app/events/event1/joinTeam/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const JoinTeam = ({ teamCode: propTeamCode }) => {
// tailwind
<div className=" bg-cover bg-no-repeat bg-center" style={{ backgroundImage: 'url(/assets/bg/spceBg.svg)', minHeight: '100vh' }}>
<div className='flex flex-col justify-center items-center h-screen'>
<div className="w-[90%] sm:w-[55vw] bg-[#141B2B] flex flex-col items-center justify-evenly text-white rounded-lg p-2 min-w-fit min-h-[70vh] m-12">
<div className="w-[90%] sm:w-[55vw] bg-[#141B2B] flex flex-col items-center justify-evenly text-white rounded-lg min-w-fit min-h-[70vh]">
<h1 className="text-[2.8rem] font-bold m-2 mb-4 text-center">
Join a Team
</h1>
Expand Down
2 changes: 1 addition & 1 deletion app/events/event1/leaderDash/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function LeaderDashboard() {

setIsLoading(false);
})
.catch((err) => {});
.catch((err) => {console.log('err', err)});
};

function toggleDelete() {
Expand Down
2 changes: 1 addition & 1 deletion app/events/event1/teamCode/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function TeamCode() {
}}>
Click here to copy
<div>
<Image src={copyIcon} className="h-full p-2" />
<Image alt="copyIcon" src={copyIcon} className="h-full p-2" />
</div>
</div>
</div>
Expand Down

0 comments on commit 33a7749

Please sign in to comment.