mirror of
https://github.com/mue/mue.git
synced 2026-07-17 05:54:14 +02:00
feat: add opt-in umami analytics (WIP)
This commit is contained in:
@@ -13,6 +13,7 @@ export default class Tabs extends React.PureComponent {
|
||||
}
|
||||
|
||||
onClick = (tab) => {
|
||||
window.analytics.postEvent('tabUpdate', `Changed tab from ${this.state.currentTab} to ${tab}`);
|
||||
this.setState({
|
||||
currentTab: tab
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user