zesty-io / manager-ui

Content platform powering enterprise websites and applications
https://www.zesty.io
Other
40 stars 6 forks source link

Live Domains are not using useDomain logic across App #607

Open nibblebot opened 3 years ago

nibblebot commented 3 years ago

Describe the bug Various locations in the app use either instance.domain or instance.domains[0]

Expected behavior Should be using the useDomain hook

nibblebot commented 3 years ago

there are several components related to Analytics that are class based and will need to be converted to functions before they can use useDomain

shrunyan commented 3 years ago

@d88naimi handing this ticket to you. As @nibblebot noted, there are class components that we want to use useDomain hook with. See if you can do the functional component solution that you did with the analytics button.

Do not worry about ActivePreview. That is a whole different problem.