I wanna use a single custom UI on multiple modules.
- key: hello-world-admin-page
title: Admin Page
- key: hello-world-project-page
title: Project Page
- key: main
Therefore, I want to render different screens depending on the module using one Custom UI. Is it possible? Or do I need to create a custom UI for each module if I need a screen?
I look forward to hearing from you.
Thanks for reaching out.
If your screen can be the same between modules, then you could just have a single Custom UI entry, shared between them.
But you will have to have a separate entry for each module if you want them to render differently.
However, you could maybe use a common codebase and during your build step, separate the build output between say:
Your manifest could then be:
- key: main-admin
- key: main-project
Hope this helps.
@XavierCaron Thank you for your quick response.
I’ll do it in the way you suggested.
I’ve been googling for a while.
My react directory structure is :
Do you mean to build the admin folder and project folder separately and specify the path?
But when I searched it, it didn’t come out well, is there any place I can refer to?
I’m sorry to ask you again.