cambios
This commit is contained in:
1 parent
9dfced04f1
commit
d7f584059e
12 files changed
+524
-30
No files matched your search
@@ -6,6 +6,7 @@ export interface Company {
|
||||
name: string;
|
||||
logoUrl?: string;
|
||||
showInLanding?: boolean;
|
||||
isPartner?: boolean;
|
||||
}
|
||||
|
||||
export function useCompanies() {
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import { useQuery } from '@tanstack/react-query';
|
||||
import { apiFetch } from './api';
|
||||
|
||||
export interface PortfolioImage {
|
||||
id: string;
|
||||
portfolioEntryId: string;
|
||||
url: string;
|
||||
order: number;
|
||||
isCover: boolean;
|
||||
caption?: string;
|
||||
}
|
||||
|
||||
export interface PortfolioTechnology {
|
||||
id: string;
|
||||
name: string;
|
||||
iconUrl?: string;
|
||||
color?: string;
|
||||
}
|
||||
|
||||
export interface PortfolioProject {
|
||||
id: string;
|
||||
title: string;
|
||||
clientCompanyName?: string;
|
||||
publicSummary?: string;
|
||||
caseStudy?: string;
|
||||
solution?: string;
|
||||
siteUrl?: string;
|
||||
isPublished: boolean;
|
||||
displayOrder: number;
|
||||
technologies: PortfolioTechnology[];
|
||||
images: PortfolioImage[];
|
||||
}
|
||||
|
||||
export function usePortfolio() {
|
||||
return useQuery<PortfolioProject[]>({
|
||||
queryKey: ['portfolio'],
|
||||
queryFn: () => apiFetch<PortfolioProject[]>('/api/portfolio/public'),
|
||||
staleTime: 1000 * 60 * 5,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user