Skip to content

Commit

Permalink
fix: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
RobChangCA committed Jan 23, 2025
1 parent 36f091b commit eaa0553
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions examples/ui-demo/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { Metrics } from "@/metrics";
import { useTheme } from "@/state/useTheme";
import { useUser } from "@account-kit/react";
import { Inter, Public_Sans } from "next/font/google";
import { useEffect, useState } from "react";
import { useState } from "react";
import { AuthCardWrapper } from "../components/preview/AuthCardWrapper";
import { CodePreview } from "../components/preview/CodePreview";
import { CodePreviewSwitch } from "../components/shared/CodePreviewSwitch";
Expand All @@ -37,14 +37,6 @@ export default function Home() {
const theme = useTheme();
const isEOAUser = user?.type === "eoa";

useEffect(() => {
const f = (event: MessageEvent) => {
console.log("Received message", event.data);
};
window.addEventListener("message", f);
return () => window.removeEventListener("message", f);
}, []);

return (
<main
className={`flex flex-col h-auto lg:bg-bg-main min-h-screen lg:min-h-0 lg:h-screen ${publicSans.className} bg-cover bg-center overflow-hidden`}
Expand Down

0 comments on commit eaa0553

Please sign in to comment.