diff --git a/app/javascript/retrospring/features/inbox/author.ts b/app/javascript/retrospring/features/inbox/author.ts new file mode 100644 index 00000000..17a77106 --- /dev/null +++ b/app/javascript/retrospring/features/inbox/author.ts @@ -0,0 +1,6 @@ +export function authorSearchHandler(event: Event): void { + event.preventDefault(); + + const author = document.querySelector('#author')?.value; + window.location.href = `/inbox/${author}`; +} \ No newline at end of file