mirror of
https://github.com/whekin/household-bot.git
synced 2026-03-31 14:04:04 +00:00
fix(miniapp): react to initial dashboard load
This commit is contained in:
@@ -1923,7 +1923,7 @@ function App() {
|
|||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderPanel = () => {
|
const panel = createMemo(() => {
|
||||||
switch (activeNav()) {
|
switch (activeNav()) {
|
||||||
case 'balances':
|
case 'balances':
|
||||||
return (
|
return (
|
||||||
@@ -2342,7 +2342,7 @@ function App() {
|
|||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main class="shell">
|
<main class="shell">
|
||||||
@@ -2459,7 +2459,7 @@ function App() {
|
|||||||
onChange={setActiveNav}
|
onChange={setActiveNav}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<section class="content-stack">{renderPanel()}</section>
|
<section class="content-stack">{panel()}</section>
|
||||||
<Modal
|
<Modal
|
||||||
open={profileEditorOpen()}
|
open={profileEditorOpen()}
|
||||||
title={copy().displayNameLabel}
|
title={copy().displayNameLabel}
|
||||||
|
|||||||
Reference in New Issue
Block a user