refactor: clean up message files and improve product category handling

This commit is contained in:
2025-06-14 15:37:20 +03:30
parent 70699ec103
commit 9d5c40ff5b
8 changed files with 93 additions and 113 deletions
-3
View File
@@ -1,8 +1,6 @@
'use server';
import { IProjectCardProps } from '@/components/pages/project/project';
import api from '@/lib/axios';
import { IResponse } from '@/models/response';
import { cookies } from 'next/headers';
export async function getProjects() {
@@ -12,7 +10,6 @@ export async function getProjects() {
headers: {
Cookie: cookiesStore.toString(),
},
})
.then(({ data }) => Promise.resolve(data.data))
.catch((error) => Promise.reject(error));