Skip to content

Commit a325b33

Browse files
Fix linting
1 parent 223bbe3 commit a325b33

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

client/src/pages/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ import {
1111
} from "@/components/ui/eventHighlightCard";
1212
import Explosion from "@/components/ui/Explosion";
1313
import LandingGames from "@/components/ui/landingGames";
14-
import { Button } from "../components/ui/button";
1514
import { UiEvent, useEvents } from "@/hooks/useEvents";
1615

1716
export default function Landing() {
1817
const [showExplosion, setShowExplosion] = useState(false);
18+
const [isShaking, setIsShaking] = useState(false);
1919

2020
const handleExplode = () => {
2121
if (showExplosion) return;
2222

2323
setShowExplosion(true);
2424
setTimeout(() => setShowExplosion(false), 700);
25+
// Trigger screen shake
26+
setIsShaking(true);
27+
setTimeout(() => setIsShaking(false), 400);
2528
};
2629

2730
const { data, isPending, isError, isFetching } = useEvents({

0 commit comments

Comments
 (0)