Hello JetBrains,
Can anyone help me, i try to change theme of my widget after use selected theme in youtrack, but i can not find any way to do this
const App = () => {
return (
<div>
<ThemeContext.Provider value={Theme.DARK}>
<Header/>
<ReportsList/>
<ReportsList/>
<ReportsList/>
</ThemeContext.Provider>
</div>
);
};
const DashboardAddons = require('hub-dashboard-addons');
DashboardAddons.registerWidget(async (dashboardApi, registerWidgetApi) => {
return render(<App/>, document.getElementById('app'));
}
);