diff --git a/pages/index.js b/pages/index.js
index d3d8fce..8e1364b 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -27,14 +27,14 @@ export default function Home() {
const renderCommand = d => {
return (
-
+
)
}
- async function clickHandler(d) {
+ async function clickHandler(fn, args = null) {
setIsLoading(true)
- await d.CMD()
+ await fn(args)
setIsLoading(false)
}
@@ -83,7 +83,7 @@ export default function Home() {
width={25}
height={25}
/>
-