#I would like to create custom UI components for Admin page. where should I add UI directory?

8 messages · Page 1 of 1 (latest)

distant grotto
#

I would like to create custom UI components for Admin page. where should I add UI directory? I tried under src/ but it give me error

Module not found: Error: Can't resolve '@src/ui/components/Spinner/Spinner' in '\.cache\admin\src\extensions\settings\languages'
distant grotto
#

up

stiff mist
#

For adding widgets to existing pages: https://docs.medusajs.com/admin/widgets

For adding new pages: https://docs.medusajs.com/admin/routes

For adding new settings: https://docs.medusajs.com/admin/setting-pages

Learn about what Admin widgets are and how you can create your own.

Learn how to create a new route in the admin dashboard.

Learn how to create a new setting page in the admin dashboard.

distant grotto
#

@stiff mist I need to add UI component like Spinner when the api is loading

open gyro
#

I would wait for Medusa 2.0. I think it will get much easier to extend stuff there

#

And no - I don’t know the release date

stiff mist
distant grotto
#

Custom page but I need to create directory for all shared components

The weback is not bundled it