Skip to content

Commit 04b6854

Browse files
committed
Merge branch 'main' of https://github.com/ericahan22/Wat2Do
2 parents d3798c4 + b435ee5 commit 04b6854

File tree

2 files changed

+44
-7
lines changed

2 files changed

+44
-7
lines changed

.github/dependabot.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
version: 2
2+
multi-ecosystem-groups:
3+
all-dependencies:
4+
applies-to: security-updates
5+
schedule:
6+
interval: "weekly"
7+
patterns:
8+
- "*"
9+
updates:
10+
- package-ecosystem: "npm"
11+
directory: "/frontend"
12+
multi-ecosystem-group: "all-dependencies"
13+
patterns:
14+
- "*"
15+
- package-ecosystem: "pip"
16+
directory: "/"
17+
multi-ecosystem-group: "all-dependencies"
18+
patterns:
19+
- "*"
20+
- package-ecosystem: "github-actions"
21+
directory: "/"
22+
multi-ecosystem-group: "all-dependencies"
23+
patterns:
24+
- "*"
25+
- package-ecosystem: "docker-compose"
26+
directory: "/"
27+
multi-ecosystem-group: "all-dependencies"
28+
patterns:
29+
- "*"
30+
- package-ecosystem: "docker"
31+
directories:
32+
- "/frontend"
33+
- "/backend"
34+
- "/db"
35+
multi-ecosystem-group: "all-dependencies"
36+
patterns:
37+
- "*"

frontend/src/shared/components/layout/TopBanner.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import { X } from "lucide-react";
33
import { IconButton } from "@/shared/components/ui/icon-button";
44
import { formatEventDate } from "@/shared/lib/dateUtils";
55
import { useLocalStorage } from "react-use";
6-
import { useNavigate } from "react-router-dom";
76

87
function TopBanner() {
98
const [isVisible, setIsVisible] = useLocalStorage("topBannerVisible", true);
109

11-
const navigate = useNavigate();
1210
if (!isVisible) return null;
1311

1412
return (
15-
<div className="w-full !bg-[#0056D6]">
13+
<div className="w-full bg-[#0488FE]">
1614
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-1.5 relative flex items-center justify-center">
1715
<a
18-
onClick={() => navigate("/auth-sign-in")}
19-
className="hover:text-gray-200 cursor-pointer"
16+
href="https://uwaterloo.ca/campus-status/"
17+
target="_blank"
18+
rel="noopener noreferrer"
19+
className="hover:text-gray-200 cursor-pointer flex items-center"
2020
>
2121
<span className="text-sm font-small text-center !text-white">
22-
{formatEventDate("2025-11-16")} - Events added in real time!
22+
{formatEventDate("2026-01-26")} - UW campuses are closed today - all scheduled events are cancelled!
2323
</span>
2424
</a>
2525
<IconButton
@@ -28,7 +28,7 @@ function TopBanner() {
2828
size="icon"
2929
className="text-white absolute right-0"
3030
icon={X}
31-
onMouseDown={() => setIsVisible(false)}
31+
onClick={() => setIsVisible(false)}
3232
/>
3333
</div>
3434
</div>

0 commit comments

Comments
 (0)