f48cb7e249
- Bumped NEXT_PUBLIC_APP_VERSION to 2.0.3 for the latest release. - Improved Cypress test for customer feedback page to handle delayed route transitions. - Refactored CompanyDetailsPage to enhance layout and added new components for better structure. - Updated TenderDetails to conditionally render location and currency information based on validity checks. - Added data-cy attributes to various form elements and tables for improved testing capabilities.
15 lines
535 B
TypeScript
15 lines
535 B
TypeScript
/** Matches `useCreateCompanyCategory` / `useUpdateCompanyCategories` onSuccess (axios `response.data` shape). */
|
|
export const categoryMutationSuccessBody = (message: string) => ({
|
|
success: true,
|
|
data: { message },
|
|
});
|
|
|
|
export const companyCategoriesListUrl = (path = "/company-categories") =>
|
|
`${path}?_cy=${Date.now()}`;
|
|
|
|
export const companyCategoryCreateUrl = () =>
|
|
`/company-categories/create?_cy=${Date.now()}`;
|
|
|
|
export const companyCategoryEditUrl = (id: string) =>
|
|
`/company-categories/edit/${id}?_cy=${Date.now()}`;
|