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 },
|
2022-06-09 14:08:38 -07:00
|
|
|
{ type: 'click', target: 'a[data-action=block], a[data-action=unblock]', handler: userActionHandler, global: true },
|
2022-01-02 20:15:01 -08:00
|
|
|
{ type: 'click', target: 'a[data-action=report-user]', handler: userReportHandler, global: true }
|
|
|
|
]);
|
2021-12-24 18:33:09 -08:00
|
|
|
}
|