fix: make the changelog button in settings work

This commit is contained in:
Paul Makles 2022-06-12 22:21:23 +01:00
parent cd8ab6739b
commit 00718245f9
2 changed files with 9 additions and 4 deletions

2
external/lang vendored

@ -1 +1 @@
Subproject commit 296a3d982c6a596176c9bbbd55020cd6ce760b9a
Subproject commit db62af5cee441c5d78bf4fc18c40f4aeffafc97d

View file

@ -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={
<>
<ButtonItem compact>
<ButtonItem
compact
onClick={() =>
modalController.push({ type: "changelog" })
}>
<ListUl size={20} />
<Text id="app.settings.pages.changelog" />
<Text id="app.special.modals.changelogs.title" />
</ButtonItem>
<a
href="https://github.com/revoltchat"
@ -281,7 +286,7 @@ export default observer(() => {
<Text id="app.settings.pages.donate.title" />
</ButtonItem>
</a>
<LineDivider />
<LineDivider compact />
<ButtonItem
onClick={() => logout()}
className={styles.logOut}