diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 2efc594..29c373a 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -33,7 +33,7 @@ export const queryClient = new QueryClient({ }); // Helper function to make GraphQL requests with error handling -export async function fetchGraphQL>( +export async function fetchGraphQL = Record>( query: string, variables?: TVariables ): Promise { diff --git a/frontend/src/components/layout/CompanySwitcher.tsx b/frontend/src/components/layout/CompanySwitcher.tsx index faa6db7..86ec65e 100644 --- a/frontend/src/components/layout/CompanySwitcher.tsx +++ b/frontend/src/components/layout/CompanySwitcher.tsx @@ -6,6 +6,10 @@ import type { Company } from '@/types/accounting'; const { Text } = Typography; +interface CompanySwitcherProps { + compact?: boolean; +} + // Mock data - will be replaced with API call const mockCompanies: Company[] = [ { @@ -36,7 +40,7 @@ const mockCompanies: Company[] = [ }, ]; -export default function CompanySwitcher() { +export default function CompanySwitcher({ compact = false }: CompanySwitcherProps) { const { activeCompany, setActiveCompany, setCompanies } = useCompanyStore(); // Initialize with mock data if needed @@ -62,7 +66,7 @@ export default function CompanySwitcher() {