Unverified Commit fd90690a authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix linting from #57364 (#68951)

Seems to be failing from new prettier setup since this PR was last
updated

x-ref:
https://github.com/vercel/next.js/actions/runs/10407306592/job/28822464359
parent d2cfaf4a
'use client' "use client";
import { sendGTMEvent } from '@next/third-parties/google' import { sendGTMEvent } from "@next/third-parties/google";
export function EventButton() { export function EventButton() {
return ( return (
<div> <div>
<button <button
onClick={() => sendGTMEvent({ event: 'buttonClicked', value: 'xyz' })} onClick={() => sendGTMEvent({ event: "buttonClicked", value: "xyz" })}
> >
Send Event Send Event
</button> </button>
</div> </div>
) );
} }
import { GoogleTagManager } from '@next/third-parties/google' import { GoogleTagManager } from "@next/third-parties/google";
const GTM_ID = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID const GTM_ID = process.env.NEXT_PUBLIC_GOOGLE_TAG_MANAGER_ID;
export default function RootLayout({ children }) { export default function RootLayout({ children }) {
return ( return (
...@@ -8,5 +8,5 @@ export default function RootLayout({ children }) { ...@@ -8,5 +8,5 @@ export default function RootLayout({ children }) {
<body>{children}</body> <body>{children}</body>
<GoogleTagManager gtmId={GTM_ID} /> <GoogleTagManager gtmId={GTM_ID} />
</html> </html>
) );
} }
import { EventButton } from './components/EventButton' import { EventButton } from "./components/EventButton";
export default function Page() { export default function Page() {
return ( return (
<div> <div>
<EventButton /> <EventButton />
</div> </div>
) );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment