- Implemented `usePaymentMethodUpdateMutation` for updating payment methods with validation. - Created settings controllers and hooks for managing payment methods. - Added UI components for creating, editing, deleting, and displaying payment methods. - Introduced error handling and feedback mechanisms for payment method operations. - Developed form schemas and utility functions for handling payment method data. - Established a new settings page for managing payment methods with appropriate loading and error states.
31 lines
752 B
TypeScript
31 lines
752 B
TypeScript
import type { IModuleClient } from "@erp/core/client";
|
|
|
|
import { CatalogsRoutes } from "./catalogs-routes";
|
|
import { ensureModuleTranslations } from "./i18n";
|
|
|
|
export const MODULE_NAME = "Catalogs";
|
|
const MODULE_VERSION = "1.0.0";
|
|
|
|
ensureModuleTranslations();
|
|
|
|
export const CatalogsModuleManifest: IModuleClient = {
|
|
name: MODULE_NAME,
|
|
version: MODULE_VERSION,
|
|
dependencies: ["auth", "Core"],
|
|
protected: true,
|
|
layout: "app-sidebar",
|
|
settings: {
|
|
entries: [
|
|
{
|
|
id: "payment-methods",
|
|
sectionId: "general",
|
|
labelKey: "settings.paymentMethods.title",
|
|
path: "/settings/general/payment-methods",
|
|
},
|
|
],
|
|
},
|
|
routes: (params) => CatalogsRoutes(params),
|
|
};
|
|
|
|
export default CatalogsModuleManifest;
|