I have added my custom react app in the ticket_top_navigation
placholder location. Its not opening the app all the time. Its opening sometimes without any issue and sometimes it not at all working.
Implemented code,
const showApp = () => {
setLoading(false);
client?.interface.trigger('showModal', {
title: 'Customer Details',
template: 'index.html',
});
};
app
?.initialized()
.then(client => {
client.events.on('app.activated', () => {
// setLocalClient(client);
showApp();
});
client.instance.context().then(function (data) {
let location = data.location;
if (location === 'ticket_top_navigation') {
setChild(
<div />
);
}
if (location === 'modal') {
setChild(<div />);
}
});
})