Skip to content

Commit

Permalink
リセットボタンを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
denkiuo604 committed Jul 10, 2023
1 parent 0dfafa1 commit 2364e00
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,23 @@ const App = () => {
})
}

// すべてを無に帰す
const resetInputs = () => {
setInputChatPalette("")
setOutputChatPalette("")
setWithSukune(false)
setWithYoichi(false)
setWithRaiden(false)
setWithKoumokuten(false)
setWithToyosatomimi(false)
setWithTengumino(false)
setWithYagokoro(false)
setWithYaobiku(false)
setClearingSkill("")
setSneakingSkill("")
setTamayuraSkill("")
}

return (
<div className="App">
<div className="card">
Expand Down Expand Up @@ -349,6 +366,11 @@ const App = () => {
出力結果をコピー
</button>
</p>
<p>
<button onClick={() => resetInputs()}>
リセット
</button>
</p>
</div>
<p className="read-the-docs">
<a href="https://talto.cc/projects/uHgxrL9QQ9B3Fep7-1DAO">エモクロアTRPG『新約・コトリバコ』</a>用 チャパレ加工ツール
Expand Down

0 comments on commit 2364e00

Please sign in to comment.