Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
elisescu committed Jan 3, 2025
1 parent 6010b6d commit ea0c82c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import Script from "next/script";
import { FC, useEffect } from "react";
import { fbPixelTrackPage, fbPixelInit, lnkdnInitAndTrack } from "./pixel-apis";

import { getAnalyticsCookieConsentGiven } from "@/app/(main)/components/cookies_banner";

import { fbPixelTrackPage, fbPixelInit, lnkdnInitAndTrack } from "./pixel-apis";

export const FacebookPixelTag: FC<{ pixelID?: string }> = ({ pixelID }) => {
const consent =
typeof window !== "undefined"
Expand All @@ -20,7 +22,7 @@ export const FacebookPixelTag: FC<{ pixelID?: string }> = ({ pixelID }) => {

return (
pixelID && (
<Script>
<Script id="facebook-pixel-tag">
{`
function initializeFacebookPixel(f, b, e, v, n, t, s) {
if (f.fbq) return;
Expand Down Expand Up @@ -69,14 +71,14 @@ export const LinkedInInsightTag: FC<{ partnerID?: string }> = ({
<>
{partnerID && (
<>
<Script>
<Script id="linkedin-insight-tag-1">
{`
_linkedin_partner_id = "${partnerID}";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
`}
</Script>
<Script>
<Script id="linkedin-insight-tag-2">
{`
window.lnkdInitAndTrackFn = function (l) {
if (!l) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { faXmarkCircle } from "@fortawesome/free-regular-svg-icons";
import { faCheckCircle } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Link from "next/link";
import { useRouter } from "next/navigation";
import React, { FC, PropsWithChildren, useState } from "react";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CookiesBanner from "../../(main)/components/cookies_banner";
import { FacebookPixelTag, LinkedInInsightTag } from "./components/pixels-tags";
import CookiesBanner from "../../(main)/components/cookies_banner";

export default async function RootLayout({
children,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { faFile, faQuestionCircle } from "@fortawesome/free-regular-svg-icons";
import { faCoffee } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import Link from "next/link";
import { FC } from "react";

import ProfileApi from "@/services/profile";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use client";

import Link from "next/link";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import posthog from "posthog-js";
import { FC, useEffect, useState } from "react";
import { useRouter } from "next/navigation";

import Button from "@/components/ui/button";

Expand Down

0 comments on commit ea0c82c

Please sign in to comment.