Files
criollo/src/admin/README.md
Amritanshu 6e3216a0ff Added prettier and prettied the code.
Created and added the razorpay payment module
2025-02-16 04:37:30 +00:00

32 lines
878 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Admin Customizations
You can extend the Medusa Admin to add widgets and new pages. Your customizations interact with API routes to provide merchants with custom functionalities.
## Example: Create a Widget
A widget is a React component that can be injected into an existing page in the admin dashboard.
For example, create the file `src/admin/widgets/product-widget.tsx` with the following content:
```tsx title="src/admin/widgets/product-widget.tsx"
import { defineWidgetConfig } from '@medusajs/admin-sdk';
// The widget
const ProductWidget = () => {
return (
<div>
<h2>Product Widget</h2>
</div>
);
};
// The widget's configurations
export const config = defineWidgetConfig({
zone: 'product.details.after',
});
export default ProductWidget;
```
This inserts a widget with the text “Product Widget” at the end of a products details page.