Skip to content

Commit

Permalink
fix(frontend): blood display in challenge modal
Browse files Browse the repository at this point in the history
ElaBosak233 committed Jun 2, 2024
1 parent 0a57b14 commit ceb8780
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/components/modals/ChallengeModal.tsx
Original file line number Diff line number Diff line change
@@ -283,7 +283,9 @@ export default function ChallengeModal(props: ChallengeModalProps) {
alignItems: "center",
}}
>
<SecondBloodIcon />
<ThemeIcon variant="transparent">
<SecondBloodIcon />
</ThemeIcon>
</Box>
</Tooltip>
)}
@@ -299,7 +301,9 @@ export default function ChallengeModal(props: ChallengeModalProps) {
alignItems: "center",
}}
>
<ThirdBloodIcon />
<ThemeIcon variant="transparent">
<ThirdBloodIcon />
</ThemeIcon>
</Box>
</Tooltip>
)}
3 changes: 3 additions & 0 deletions web/src/components/navigations/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -16,10 +16,12 @@ import MDIcon from "@/components/ui/MDIcon";
import { useAuthStore } from "@/stores/auth";
import { useConfigStore } from "@/stores/config";
import { useEffect, useState } from "react";
import { useTeamStore } from "@/stores/team";

export default function Navbar() {
const authStore = useAuthStore();
const configStore = useConfigStore();
const teamStore = useTeamStore();
const navigate = useNavigate();
const { colorScheme, setColorScheme } = useMantineColorScheme({
keepTransitions: true,
@@ -31,6 +33,7 @@ export default function Navbar() {
function logout() {
authStore.setPgsToken("");
authStore.setUser(undefined);
teamStore.setSelectedTeamID(0);
navigate("/login");
}

0 comments on commit ceb8780

Please sign in to comment.