diff --git a/components/landing-page/agent.tsx b/components/landing-page/agent.tsx index 46086e1..c3d8354 100644 --- a/components/landing-page/agent.tsx +++ b/components/landing-page/agent.tsx @@ -37,7 +37,7 @@ export default function Agent() { new Date(b.created_at).getTime() - new Date(a.created_at).getTime(), ) // ✅ newest first - .slice(0, 5); // ✅ max 5 + .slice(0, 3); // ✅ max 5 setAgents(latestApprovedAgents); } catch (error) { @@ -60,7 +60,7 @@ export default function Agent() { Our Teams -
+
{agents.map((agent, index) => ( {agent.name}

- {agent.job_title} + {agent.job_title}Cihampelas Bandung

))} diff --git a/components/landing-page/best-agent.tsx b/components/landing-page/best-agent.tsx index e2eace4..fb416e9 100644 --- a/components/landing-page/best-agent.tsx +++ b/components/landing-page/best-agent.tsx @@ -37,7 +37,7 @@ export default function BestAgent() { new Date(b.created_at).getTime() - new Date(a.created_at).getTime(), ) // ✅ newest first - .slice(0, 5); // ✅ max 5 + .slice(0, 3); // ✅ max 5 setAgents(latestApprovedAgents); } catch (error) { @@ -60,7 +60,7 @@ export default function BestAgent() { Our Teams -
+
{agents.map((agent, index) => ( error.response); @@ -35,7 +35,11 @@ export async function httpGetInterceptor(pathUrl: any) { } } -export async function httpPostInterceptor(pathUrl: any, data: any, headers?: any) { +export async function httpPostInterceptor( + pathUrl: any, + data: any, + headers?: any, +) { const resCsrf = await getCsrfToken(); const csrfToken = resCsrf?.data?.csrf_token; @@ -67,7 +71,11 @@ export async function httpPostInterceptor(pathUrl: any, data: any, headers?: any } } -export async function httpPutInterceptor(pathUrl: any, data: any, headers?: any) { +export async function httpPutInterceptor( + pathUrl: any, + data: any, + headers?: any, +) { const resCsrf = await getCsrfToken(); const csrfToken = resCsrf?.data?.csrf_token; @@ -99,7 +107,7 @@ export async function httpPutInterceptor(pathUrl: any, data: any, headers?: any) } export async function httpDeleteInterceptor(pathUrl: any, headers?: any) { - const resCsrf = await getCsrfToken(); + const resCsrf = await getCsrfToken(); const csrfToken = resCsrf?.data?.csrf_token; const mergedHeaders = {