Skip to content

Commit

Permalink
Merge pull request #34 from kv8gh/main
Browse files Browse the repository at this point in the history
asdf
  • Loading branch information
anjy7 authored Mar 15, 2024
2 parents 17ed443 + 89f731e commit af9d038
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/api/event1/getTeamData/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function GET(req) {
let userId = await getTokenDetails(auth);

const user = await Users.findById({ _id: userId });
console.log('gggggggggggggggggggggggg',user);

if (!user) {
return NextResponse.json({ message: 'User Not found' });
Expand Down
6 changes: 3 additions & 3 deletions app/events/event1/page.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Link from "next/link";

export default function Page() {
return <div>
Event1 Landing Page
<br></br>
info about Event1
<br></br>

<button>
Register
</button>
<Link href={'/events/event1/makeTeam'} className="bg-blue-500 border border-black rounded-lg p-2 m-2">Register</Link>
</div>;
}
2 changes: 1 addition & 1 deletion app/userDetails/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default function UserDetails() {
style={{ color: "black" }}
/>
</div>
<button onClick={() => handleSubmit()}>Submit</button>
<button onClick={() => handleSubmit()} className="bg-blue border border-black rounded-lg p-3">Submit</button>
<Toaster />
</div>
);
Expand Down
6 changes: 4 additions & 2 deletions components/SignInBtn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@

import Image from "next/image";
import { signIn,signOut,useSession } from "next-auth/react";
import { Router, useRouter } from "next/navigation";

export default function SignInBtn() {
const { status } = useSession();
const router = useRouter();
return (
<div className="flex bg-blue-500 p-2 border border-black rounded-lg">
{status === "authenticated" ? (
<button
onClick={() => signOut()} >
onClick={() => {signOut();}} >
Sign Out
</button>
) : (
<button
onClick={() => signIn("google")} >
onClick={() => {signIn("google");}} >
Sign In
</button>
)}
Expand Down

0 comments on commit af9d038

Please sign in to comment.