mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
fix: resolved linting and prettier issues for formating
This commit is contained in:
@@ -21,7 +21,11 @@ import {
|
||||
FormField,
|
||||
FormMessage,
|
||||
} from "@/components/ui/form";
|
||||
import { initializeSession, trackUserLogin, trackUserRegistration } from "@/lib/analytics";
|
||||
import {
|
||||
initializeSession,
|
||||
trackUserLogin,
|
||||
trackUserRegistration,
|
||||
} from "@/lib/analytics";
|
||||
import { ApiError, authFormSchema } from "@/types";
|
||||
|
||||
export const AuthForm = ({
|
||||
|
||||
@@ -17,9 +17,9 @@ import { scanOnDemand, scheduleDaily } from "@/actions/scans";
|
||||
import { getTask } from "@/actions/task/tasks";
|
||||
import { CheckIcon, RocketIcon } from "@/components/icons";
|
||||
import { useToast } from "@/components/ui";
|
||||
import { trackCloudConnectionSuccess } from "@/lib/analytics";
|
||||
import { CustomButton } from "@/components/ui/custom";
|
||||
import { Form } from "@/components/ui/form";
|
||||
import { trackCloudConnectionSuccess } from "@/lib/analytics";
|
||||
import { checkTaskStatus } from "@/lib/helper";
|
||||
import { ProviderType } from "@/types";
|
||||
import { ApiError, testConnectionFormSchema } from "@/types";
|
||||
|
||||
+11
-3
@@ -101,7 +101,10 @@ export const trackCloudConnectionSuccess = ({
|
||||
};
|
||||
|
||||
// Generic event tracking function for custom events
|
||||
export const trackEvent = (eventName: string, properties?: Record<string, any>): void => {
|
||||
export const trackEvent = (
|
||||
eventName: string,
|
||||
properties?: Record<string, any>,
|
||||
): void => {
|
||||
try {
|
||||
posthog.capture(eventName, {
|
||||
...properties,
|
||||
@@ -113,7 +116,10 @@ export const trackEvent = (eventName: string, properties?: Record<string, any>):
|
||||
};
|
||||
|
||||
// Track page view
|
||||
export const trackPageView = (pageName: string, properties?: Record<string, any>): void => {
|
||||
export const trackPageView = (
|
||||
pageName: string,
|
||||
properties?: Record<string, any>,
|
||||
): void => {
|
||||
try {
|
||||
posthog.capture("$pageview", {
|
||||
$current_url: window.location.href,
|
||||
@@ -137,7 +143,9 @@ export const setUserProperties = (properties: Record<string, any>): void => {
|
||||
// Check if PostHog is initialized and ready
|
||||
export const isAnalyticsReady = (): boolean => {
|
||||
try {
|
||||
return typeof posthog !== "undefined" && posthog._isIdentified !== undefined;
|
||||
return (
|
||||
typeof posthog !== "undefined" && posthog._isIdentified !== undefined
|
||||
);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user