From 00718245f92000d1fc491d9953adc7d298fa5a6e Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sun, 12 Jun 2022 22:21:23 +0100 Subject: [PATCH] fix: make the changelog button in settings work --- external/lang | 2 +- src/pages/settings/Settings.tsx | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/external/lang b/external/lang index 296a3d98..db62af5c 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 296a3d982c6a596176c9bbbd55020cd6ce760b9a +Subproject commit db62af5cee441c5d78bf4fc18c40f4aeffafc97d diff --git a/src/pages/settings/Settings.tsx b/src/pages/settings/Settings.tsx index 25ed1148..7b0f5c36 100644 --- a/src/pages/settings/Settings.tsx +++ b/src/pages/settings/Settings.tsx @@ -35,6 +35,7 @@ import { LineDivider } from "@revoltchat/ui"; import { useApplicationState } from "../../mobx/State"; import { useIntermediate } from "../../context/intermediate/Intermediate"; +import { modalController } from "../../context/modals"; import RequiresOnline from "../../context/revoltjs/RequiresOnline"; import { AppContext, LogOutContext } from "../../context/revoltjs/RevoltClient"; @@ -259,9 +260,13 @@ export default observer(() => { category="pages" custom={ <> - + + modalController.push({ type: "changelog" }) + }> - + { - + logout()} className={styles.logOut}