mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-01 11:20:58 -05:00
fix: make the changelog button in settings work
This commit is contained in:
parent
cd8ab6739b
commit
00718245f9
2 changed files with 9 additions and 4 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 296a3d982c6a596176c9bbbd55020cd6ce760b9a
|
Subproject commit db62af5cee441c5d78bf4fc18c40f4aeffafc97d
|
|
@ -35,6 +35,7 @@ import { LineDivider } from "@revoltchat/ui";
|
||||||
import { useApplicationState } from "../../mobx/State";
|
import { useApplicationState } from "../../mobx/State";
|
||||||
|
|
||||||
import { useIntermediate } from "../../context/intermediate/Intermediate";
|
import { useIntermediate } from "../../context/intermediate/Intermediate";
|
||||||
|
import { modalController } from "../../context/modals";
|
||||||
import RequiresOnline from "../../context/revoltjs/RequiresOnline";
|
import RequiresOnline from "../../context/revoltjs/RequiresOnline";
|
||||||
import { AppContext, LogOutContext } from "../../context/revoltjs/RevoltClient";
|
import { AppContext, LogOutContext } from "../../context/revoltjs/RevoltClient";
|
||||||
|
|
||||||
|
@ -259,9 +260,13 @@ export default observer(() => {
|
||||||
category="pages"
|
category="pages"
|
||||||
custom={
|
custom={
|
||||||
<>
|
<>
|
||||||
<ButtonItem compact>
|
<ButtonItem
|
||||||
|
compact
|
||||||
|
onClick={() =>
|
||||||
|
modalController.push({ type: "changelog" })
|
||||||
|
}>
|
||||||
<ListUl size={20} />
|
<ListUl size={20} />
|
||||||
<Text id="app.settings.pages.changelog" />
|
<Text id="app.special.modals.changelogs.title" />
|
||||||
</ButtonItem>
|
</ButtonItem>
|
||||||
<a
|
<a
|
||||||
href="https://github.com/revoltchat"
|
href="https://github.com/revoltchat"
|
||||||
|
@ -281,7 +286,7 @@ export default observer(() => {
|
||||||
<Text id="app.settings.pages.donate.title" />
|
<Text id="app.settings.pages.donate.title" />
|
||||||
</ButtonItem>
|
</ButtonItem>
|
||||||
</a>
|
</a>
|
||||||
<LineDivider />
|
<LineDivider compact />
|
||||||
<ButtonItem
|
<ButtonItem
|
||||||
onClick={() => logout()}
|
onClick={() => logout()}
|
||||||
className={styles.logOut}
|
className={styles.logOut}
|
||||||
|
|
Loading…
Reference in a new issue