mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Very weird fix, prevent Shortcuts from being unmounted
Somehow it got unmounted and "rearrange" whenever routes change. Weird…..
This commit is contained in:
parent
9f84297b8f
commit
563a1ffd9b
1 changed files with 6 additions and 4 deletions
10
src/app.jsx
10
src/app.jsx
|
@ -310,10 +310,12 @@ function App() {
|
|||
<Routes>
|
||||
<Route path="/:instance?/s/:id" element={<Status />} />
|
||||
</Routes>
|
||||
{!snapStates.settings.shortcutsColumnsMode &&
|
||||
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
||||
<Shortcuts />
|
||||
)}
|
||||
<div>
|
||||
{!snapStates.settings.shortcutsColumnsMode &&
|
||||
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
||||
<Shortcuts />
|
||||
)}
|
||||
</div>
|
||||
{!!snapStates.showCompose && (
|
||||
<Modal>
|
||||
<Compose
|
||||
|
|
Loading…
Reference in a new issue