Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Revert "fix(next): hydration error on test page"
Browse files Browse the repository at this point in the history
This reverts commit b86c06e.
  • Loading branch information
saeidex committed Dec 6, 2024
1 parent 638ada6 commit b8b0908
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/next/src/app/dashboard/test/[busId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use client";

import { useEffect, useState } from "react";

import { useBusLocationQuery } from "@ubus/mqtt";

interface BusLocationPageProps {
Expand All @@ -11,14 +9,6 @@ interface BusLocationPageProps {
}

const BusLocationPage = (props: BusLocationPageProps) => {
const [mounted, setMounted] = useState(false);

useEffect(() => {
setMounted(true);
}, []);

if (!mounted) return null;

return (
<div className="grid h-dvh place-content-center place-items-center gap-4">
<h1>Bus Location</h1>
Expand Down

0 comments on commit b8b0908

Please sign in to comment.