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>
|
<Routes>
|
||||||
<Route path="/:instance?/s/:id" element={<Status />} />
|
<Route path="/:instance?/s/:id" element={<Status />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
{!snapStates.settings.shortcutsColumnsMode &&
|
<div>
|
||||||
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
{!snapStates.settings.shortcutsColumnsMode &&
|
||||||
<Shortcuts />
|
snapStates.settings.shortcutsViewMode !== 'multi-column' && (
|
||||||
)}
|
<Shortcuts />
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
{!!snapStates.showCompose && (
|
{!!snapStates.showCompose && (
|
||||||
<Modal>
|
<Modal>
|
||||||
<Compose
|
<Compose
|
||||||
|
|
Loading…
Reference in a new issue