Refactor commands

This commit is contained in:
Saoud Rizwan
2024-10-06 05:39:11 -04:00
parent c04dfc76cb
commit 5190d30ae3
9 changed files with 39 additions and 39 deletions

View File

@@ -19,15 +19,15 @@ const AppContent = () => {
switch (message.type) {
case "action":
switch (message.action!) {
case "settingsButtonTapped":
case "settingsButtonClicked":
setShowSettings(true)
setShowHistory(false)
break
case "historyButtonTapped":
case "historyButtonClicked":
setShowSettings(false)
setShowHistory(true)
break
case "chatButtonTapped":
case "chatButtonClicked":
setShowSettings(false)
setShowHistory(false)
break