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() {
return (
<div>
<button
onClick={() => sendGTMEvent({ event: 'buttonClicked', value: 'xyz' })}
onClick={() => sendGTMEvent({ event: "buttonClicked", value: "xyz" })}
>
Send Event
</button>
</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 }) {
return (
......@@ -8,5 +8,5 @@ export default function RootLayout({ children }) {
<body>{children}</body>
<GoogleTagManager gtmId={GTM_ID} />
</html>
)
);
}
import { EventButton } from './components/EventButton'
import { EventButton } from "./components/EventButton";
export default function Page() {
return (
<div>
<EventButton />
</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