Skip to content

Commit 577e4b5

Browse files
authored
Fix ReScript deprecation warnings (#669)
* Fix ReScript deprecation warning: change es6 to esmodule * Fix ReScript warning: mark unused event parameter with underscore
1 parent a32a650 commit 577e4b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"package-specs": [
1010
{
11-
"module": "es6",
11+
"module": "esmodule",
1212
"in-source": true
1313
}
1414
],

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)