diff --git a/src/app.jsx b/src/app.jsx index d2a19ca4..ed6146a8 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -412,8 +412,11 @@ function App() { { + onClose={({ destination }) => { states.showAccount = false; + if (destination) { + states.showAccounts = false; + } }} /> diff --git a/src/components/account-sheet.jsx b/src/components/account-sheet.jsx index d202866c..78b89aba 100644 --- a/src/components/account-sheet.jsx +++ b/src/components/account-sheet.jsx @@ -17,7 +17,9 @@ function AccountSheet({ account, instance: propInstance, onClose }) { onClick={(e) => { const accountBlock = e.target.closest('.account-block'); if (accountBlock) { - onClose(); + onClose({ + destination: 'account-statuses', + }); } }} >