mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
fix: make the changelog button in settings work
This commit is contained in:
2
external/lang
vendored
2
external/lang
vendored
Submodule external/lang updated: 296a3d982c...db62af5cee
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user