summaryrefslogtreecommitdiff
path: root/web/source/settings/index.js
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-10-05 16:06:19 +0200
committerLibravatar GitHub <noreply@github.com>2023-10-05 16:06:19 +0200
commitd173fcdfa3ad6f6aee721c8553f25f4db38fa302 (patch)
tree722cdaf93e090edcf83769ae763731008daf5fd3 /web/source/settings/index.js
parentupdates markdown parsing to reduce allocations in the same way as the plain t... (diff)
downloadgotosocial-d173fcdfa3ad6f6aee721c8553f25f4db38fa302.tar.xz
[chore] Convert some settings / admin panel JS to TypeScript (#2247)
* initial conversion of STUFF to typescript * more stuff * update babel deps, include commonjs transform * update bundler & eslint configuration * eslint --fix * upgrade deps * update docs, build stuff, peripheral stuff --------- Co-authored-by: f0x <f0x@cthu.lu>
Diffstat (limited to 'web/source/settings/index.js')
-rw-r--r--web/source/settings/index.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/web/source/settings/index.js b/web/source/settings/index.js
index 9758e89e6..bc3a925c2 100644
--- a/web/source/settings/index.js
+++ b/web/source/settings/index.js
@@ -17,17 +17,15 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-"use strict";
-
const React = require("react");
const ReactDom = require("react-dom/client");
const { Provider } = require("react-redux");
const { PersistGate } = require("redux-persist/integration/react");
-const { store, persistor } = require("./redux");
+const { store, persistor } = require("./redux/store");
const { createNavigation, Menu, Item } = require("./lib/navigation");
-const AuthorizationGate = require("./components/authorization");
+const { Authorization } = require("./components/authorization");
const Loading = require("./components/loading");
const UserLogoutCard = require("./components/user-logout-card");
const { RoleContext } = require("./lib/navigation/util");
@@ -90,7 +88,7 @@ function Main() {
return (
<Provider store={store}>
<PersistGate loading={<section><Loading /></section>} persistor={persistor}>
- <AuthorizationGate App={App} />
+ <Authorization App={App} />
</PersistGate>
</Provider>
);