diff options
author | 2023-03-29 12:18:45 +0200 | |
---|---|---|
committer | 2023-03-29 12:18:45 +0200 | |
commit | 0746ef741a51bd8f92ca5e07dfb9f35b66f4cf06 (patch) | |
tree | 3c70da50eea8bad5db78dff5ce3a7a93dfefa36b /web/source/settings/admin/emoji/local/index.js | |
parent | [bugfix] Remove unique constraint on public_key (#1653) (diff) | |
download | gotosocial-0746ef741a51bd8f92ca5e07dfb9f35b66f4cf06.tar.xz |
[frontend] Settings navigation design (#1652)
* change header image alignment
(cherry picked from commit df1bb339a5c597a2b668cedb3dafec5a390df120)
* big mess navigation refactor
* bit of cleanup
* minor css tweaks
* fix error rendering code for remote emoji
* refactor navigation structure code
* refactor styling
* fix className
* stash
* restructure navigation generation
* url wildcard formatting
* remove un-implemented User menu entry
* remove commented lines
* clarify permissions check
* invert permissions logic for clarity
Diffstat (limited to 'web/source/settings/admin/emoji/local/index.js')
-rw-r--r-- | web/source/settings/admin/emoji/local/index.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/web/source/settings/admin/emoji/local/index.js b/web/source/settings/admin/emoji/local/index.js index 3c88f49c3..56695094c 100644 --- a/web/source/settings/admin/emoji/local/index.js +++ b/web/source/settings/admin/emoji/local/index.js @@ -25,15 +25,13 @@ const { Switch, Route } = require("wouter"); const EmojiOverview = require("./overview"); const EmojiDetail = require("./detail"); -const base = "/settings/custom-emoji/local"; - -module.exports = function CustomEmoji() { +module.exports = function CustomEmoji({ baseUrl }) { return ( <Switch> - <Route path={`${base}/:emojiId`}> - <EmojiDetail baseUrl={base} /> + <Route path={`${baseUrl}/:emojiId`}> + <EmojiDetail /> </Route> - <EmojiOverview baseUrl={base} /> + <EmojiOverview /> </Switch> ); }; |