Retrospring/app/javascript/retrospring/features/user/report.ts

8 lines
258 B
TypeScript
Raw Normal View History

import { reportDialog } from 'utilities/reportDialog';
export function userReportHandler(event: Event): void {
event.preventDefault();
const button: HTMLButtonElement = event.target as HTMLButtonElement;
reportDialog('user', button.dataset.target);
}