fix: resolved linting and prettier issues for formating

This commit is contained in:
Amit Sharma
2025-07-30 16:02:30 -07:00
parent d0d0ae8716
commit c7e4c3d839
3 changed files with 17 additions and 5 deletions
+5 -1
View File
@@ -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
View File
@@ -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;
}