chore(src): 🔧 Update TypeScript files in src directory

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-02 01:42:33 -08:00
parent 92bd024ece
commit 7679de2b10
4 changed files with 9 additions and 13 deletions

View file

@ -100,7 +100,7 @@ const NotificationsList = styled.div`
const EmptyState = styled.div`
text-align: center;
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'};
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`};
`;
const EmptyIcon = styled.div`
@ -124,13 +124,13 @@ const EmptyText = styled.p`
const LoadingState = styled.div`
text-align: center;
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'};
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`};
color: ${({ theme }: { theme: DefaultTheme }) => theme.colors?.text?.secondary || '#6b7280'};
`;
const ErrorState = styled.div`
text-align: center;
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl} 0` || '3rem 0'};
padding: ${({ theme }: { theme: DefaultTheme }) => `${theme.spacing?.xl ?? '2rem'} 0`};
color: ${({ theme }: { theme: DefaultTheme }) => theme.colors?.error?.main || '#ef4444'};
`;

View file

@ -194,7 +194,7 @@ export class AnalyticsApiClient implements OnModuleInit {
throw new Error(`Analytics API error (${response.status}): ${error}`);
}
return response.json();
return response.json() as Promise<T>;
}
// ============ Acquisition Endpoints ============
@ -382,7 +382,7 @@ export class AnalyticsApiClient implements OnModuleInit {
throw new Error(`Analytics API error (${response.status}): ${error}`);
}
return response.json();
return response.json() as Promise<Segment>;
}
async deleteSegment(id: string): Promise<void> {

View file

@ -174,11 +174,10 @@ export function useProfileAnalytics() {
trackInteraction({
type: 'click',
data: {
element: 'profile_photo',
action: interactionType,
photoId,
profileType,
photoIndex,
elementId: photoId,
elementType: 'other',
eventName: 'profile_photo_interaction',
eventLabel: interactionType,
pageUrl: window.location.href,
},
});

View file

@ -1,6 +1,3 @@
import { join, dirname } from "path";
import { fileURLToPath } from "url";
import { getServiceRegistry } from "@lilith/service-registry";
import { BullModule } from "@nestjs/bullmq";
import { Module } from "@nestjs/common";