feat(cms): Add CMS details page and update related components
- Implement new edit marketing page with dynamic routing - Update CMS and contact us table components with placeholder content - Add new query hook for fetching CMS details by ID - Modify CMS service to support fetching individual CMS details - Update type definitions for CMS-related data structures - Add initial breadcrumb navigation for edit marketing page - Prepare infrastructure for future CMS editing functionality
This commit is contained in:
@@ -10,6 +10,13 @@ export const useGetCmsList = () => {
|
||||
queryFn: cmsService.getCms,
|
||||
});
|
||||
};
|
||||
export const useGetCmsDetails = (id: string) => {
|
||||
const queryKey = useMemo(() => [API_ENDPOINTS.CMS.BASE(id)], [id]);
|
||||
return useQuery({
|
||||
queryKey,
|
||||
queryFn: () => cmsService.getCmsDetails(id),
|
||||
});
|
||||
};
|
||||
export const useCreateCms = () => {
|
||||
const mutationKey = useMemo(
|
||||
() => [API_ENDPOINTS.CMS.BASE(), "Create cms"],
|
||||
|
||||
Reference in New Issue
Block a user