mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
close drawer when clicked about
This commit is contained in:
parent
af0fcf52d8
commit
de78da3f47
@ -379,6 +379,14 @@ export default class SettingsMenu extends React.PureComponent {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickAppAbout = () => {
|
||||||
|
window.app.setLocation("/about")
|
||||||
|
|
||||||
|
if (typeof this.props.close === "function") {
|
||||||
|
this.props.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const isDevMode = window.__evite?.env?.NODE_ENV !== "production"
|
const isDevMode = window.__evite?.env?.NODE_ENV !== "production"
|
||||||
|
|
||||||
@ -408,7 +416,7 @@ export default class SettingsMenu extends React.PureComponent {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<antd.Button type="link" onClick={() => window.app.setLocation("/about")}>
|
<antd.Button type="link" onClick={this.onClickAppAbout}>
|
||||||
<Translation>
|
<Translation>
|
||||||
{t => t("about")}
|
{t => t("about")}
|
||||||
</Translation>
|
</Translation>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user