feat(inquiries): add sidebar nav item, icon, and API endpoint

- Add "Inquiries" nav item to sidebar data with `/inquiries` URL and BriefcaseTimer icon
- Implement BriefcaseTimer SVG icon component
- Add `INQUIRIES` base endpoint to API_ENDPOINTS
- Cleanup: remove commented details button in CmsTable, reorder imports
This commit is contained in:
AmirReza Jamali
2025-11-25 12:03:12 +03:30
parent 2389ad1bbf
commit 6d4016af5e
13 changed files with 346 additions and 16 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
export * from "./user-services";
export * from "./companies-service";
export * from "./tenders-service";
export * from "./inquiries-service";
export * from "./profile-service";
export * from "./tenders-service";
export * from "./user-services";
+24
View File
@@ -0,0 +1,24 @@
import api from "../axios";
import { API_ENDPOINTS } from "../endpoints";
import { TInquiriesResponse } from "../types";
export const inquiriesService = {
getInquiries: async (
params?: Record<string, any>,
): Promise<TInquiriesResponse> => {
try {
return (await api.get(API_ENDPOINTS.INQUIRIES.BASE(), { params })).data;
} catch (error) {
console.error("ERROR caught in inquiries service => getInquiries", error);
throw error;
}
},
deleteInquiry: async (id: string) => {
try {
return (await api.delete(API_ENDPOINTS.INQUIRIES.BASE(id))).data;
} catch (error) {
console.error("ERROR caught in inquiries service => deleteInquiry", error);
throw error;
}
},
};