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/reports/index.jsx | |
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/reports/index.jsx')
-rw-r--r-- | web/source/settings/admin/reports/index.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/source/settings/admin/reports/index.jsx b/web/source/settings/admin/reports/index.jsx index 0bb875d86..b2b8b4295 100644 --- a/web/source/settings/admin/reports/index.jsx +++ b/web/source/settings/admin/reports/index.jsx @@ -28,23 +28,22 @@ const FormWithData = require("../../lib/form/form-with-data"); const ReportDetail = require("./detail"); const Username = require("./username"); +const { useBaseUrl } = require("../../lib/navigation/util"); -const baseUrl = "/settings/admin/reports"; - -module.exports = function Reports() { +module.exports = function Reports({ baseUrl }) { return ( <div className="reports"> <Switch> <Route path={`${baseUrl}/:reportId`}> - <ReportDetail baseUrl={baseUrl} /> + <ReportDetail /> </Route> - <ReportOverview baseUrl={baseUrl} /> + <ReportOverview /> </Switch> </div> ); }; -function ReportOverview({ _baseUrl }) { +function ReportOverview({ }) { return ( <> <h1>Reports</h1> @@ -79,6 +78,7 @@ function ReportsList({ data: reports }) { } function ReportEntry({ report }) { + const baseUrl = useBaseUrl(); const from = report.account; const target = report.target_account; |