Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new release #95

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
683e5af
Removed unneccesary white background to question game form
henrikhaus Jan 13, 2025
9fde33e
Added dark mode colors to title field in question game form.
henrikhaus Jan 13, 2025
a627538
Password hidden when typing on log in.
henrikhaus Jan 13, 2025
fe21a53
Navbar home link only works if logged in.
henrikhaus Jan 13, 2025
1205dfb
Changed placeholder title in team name
henrikhaus Jan 20, 2025
ad15a04
Fixed Create Team button position
henrikhaus Jan 20, 2025
a1d6bd7
Fixed text overflow in team title
henrikhaus Jan 20, 2025
59b0d45
Fixed max teams text in beer pong create form
henrikhaus Jan 20, 2025
9fb4f3c
Fixed DRIKKELEKER text in main page
henrikhaus Jan 27, 2025
1aed4c0
Adjusted brightness of login page background image
henrikhaus Jan 27, 2025
897d5a4
Redirects the user to the main page when logging out.
henrikhaus Jan 27, 2025
ed66dd7
Adjusted spacing in beer pong setup team cards
henrikhaus Jan 27, 2025
ed4117e
Fixed empty card appearing in public tournaments list if owned tourna…
henrikhaus Jan 27, 2025
8294707
Fixed team name overflow in beer pong ongoing match card.
henrikhaus Jan 27, 2025
5a1f2ab
Removed unused files.
henrikhaus Jan 27, 2025
c32cec7
Fixed various text formatting and layout bugs across tournament pages.
henrikhaus Jan 27, 2025
a0203a5
Increased space between Blitzed icon and text.
henrikhaus Jan 27, 2025
dc1e483
More space adjustment in ongoing tournament.
henrikhaus Jan 27, 2025
f75b0da
Added text truncation to team buttons in winning team dialogue.
henrikhaus Jan 27, 2025
e17b074
Random background pictures to questioncards
Feb 3, 2025
e73335d
Merge branch 'dev' of github.com:TIHLDE/Blitzed into dev
Feb 3, 2025
5c10643
Patch TIHLDE login credentials provider (#97)
lille-morille Feb 17, 2025
409a66b
Adding questions to question game now works.
henrikhaus Feb 24, 2025
5d9abb6
Existing questions for the question game now show up after loading th…
henrikhaus Feb 24, 2025
03d446e
Added link to edit questions.
henrikhaus Feb 24, 2025
58300fe
Edit Background and Text on Question Cards
Feb 24, 2025
4411936
Merge branch 'dev' of github.com:TIHLDE/Blitzed into dev
Feb 24, 2025
e6c6580
New Create Button on Question Game
Feb 24, 2025
98a3ec3
Changed Design on buttons
Feb 24, 2025
af6d813
Link in Create New Button
Mar 3, 2025
1a309cc
Add a "Tilbake" button
Mar 3, 2025
c8dfcbe
New "Tilbake" Button on Question-Game/id
Mar 3, 2025
0522cca
Fixed correct id in add questions page
henrikhaus Mar 3, 2025
566cad3
Merge remote-tracking branch 'origin/dev' into dev
henrikhaus Mar 3, 2025
e43887b
Create and edit buttons for question games are now only visible for a…
henrikhaus Mar 10, 2025
dbfdb2f
Fixed add questions only adding to question game with id 1
henrikhaus Mar 10, 2025
5b1f880
Added dynamic vertical scaling in question game card.
henrikhaus Mar 10, 2025
1128224
Resized quesiont game bottom buttons
henrikhaus Mar 10, 2025
461a79b
Changed the Darkmode on Add Question Page
Mar 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Redirects the user to the main page when logging out.
henrikhaus committed Jan 27, 2025
commit 897d5a48408eb7244df1ab53aca126e3e8598386
11 changes: 10 additions & 1 deletion src/components/layout/avatar-dropdown.tsx
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";
import { Session } from "next-auth";
import { useMemo } from "react";
import { signIn, signOut } from "next-auth/react";
import { Fallback } from "@radix-ui/react-avatar";

interface DropdownItem {
name: string;
@@ -25,7 +26,15 @@ export default function AvatarDropdown({ user }: { user: Session | null }) {
];
}

return [{ name: "Logg ut", onClick: () => signOut() }];
return [
{
name: "Logg ut",
onClick: async () => {
await signOut();
window.location.href = "/";
},
},
];
}, [user]);

return (