2021-12-24 18:33:09 -08:00
|
|
|
import { userActionHandler } from './action';
|
|
|
|
import { userReportHandler } from './report';
|
2022-01-02 20:15:01 -08:00
|
|
|
import registerEvents from 'retrospring/utilities/registerEvents';
|
2021-12-24 18:33:09 -08:00
|
|
|
|
|
|
|
export default (): void => {
|
2022-01-02 20:15:01 -08:00
|
|
|
registerEvents([
|
|
|
|
{ type: 'click', target: 'button[name=user-action]', handler: userActionHandler, global: true },
|
|
|
|
{ type: 'click', target: 'a[data-action=report-user]', handler: userReportHandler, global: true }
|
|
|
|
]);
|
2021-12-24 18:33:09 -08:00
|
|
|
}
|