Skip to content

Commit 1a84129

Browse files
justin808claude
andcommitted
Fix ReScript warning: mark unused event parameter with underscore
The onClick handler wasn't using the event parameter, causing a ReScript warning. Prefixed it with underscore to indicate it's intentionally unused. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6dceec6 commit 1a84129

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.swcrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"react": {
1010
"runtime": "automatic"
1111
}
12-
},
13-
"target": "es2015"
12+
}
1413
},
1514
"module": {
1615
"type": "es6"

client/app/bundles/comments/rescript/CommentForm/CommentForm.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ let make = (~fetchData) => {
104104
className={`px-6 py-2 font-semibold border-0 rounded ${state.form == form.formType
105105
? "text-sky-50 bg-sky-600"
106106
: "text-sky-600 hover:bg-gray-100"}`}
107-
onClick={event => SetFormType(form.formType)->dispatch}>
107+
onClick={_event => SetFormType(form.formType)->dispatch}>
108108
{form.formName->React.string}
109109
</button>
110110
)

0 commit comments

Comments
 (0)