mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
open donatives
This commit is contained in:
parent
9ebceda7a9
commit
3712954afb
@ -2,9 +2,9 @@ import React from "react"
|
|||||||
import * as antd from "antd"
|
import * as antd from "antd"
|
||||||
import { Translation } from "react-i18next"
|
import { Translation } from "react-i18next"
|
||||||
|
|
||||||
|
import DonativeSelector from "@components/DonativeSelector"
|
||||||
import PageTransition from "@components/PageTransition"
|
import PageTransition from "@components/PageTransition"
|
||||||
import { createIconRender } from "@components/Icons"
|
import { createIconRender } from "@components/Icons"
|
||||||
import config from "@config"
|
|
||||||
|
|
||||||
import useUrlQueryActiveKey from "@hooks/useUrlQueryActiveKey"
|
import useUrlQueryActiveKey from "@hooks/useUrlQueryActiveKey"
|
||||||
import useUserRemoteConfig from "@hooks/useUserRemoteConfig"
|
import useUserRemoteConfig from "@hooks/useUserRemoteConfig"
|
||||||
@ -13,6 +13,7 @@ import {
|
|||||||
composedSettingsByGroups as settings
|
composedSettingsByGroups as settings
|
||||||
} from "@/settings"
|
} from "@/settings"
|
||||||
|
|
||||||
|
import config from "@config"
|
||||||
import menuGroupsDecorators from "@config/settingsMenuGroupsDecorators"
|
import menuGroupsDecorators from "@config/settingsMenuGroupsDecorators"
|
||||||
|
|
||||||
import SettingTab from "./components/SettingTab"
|
import SettingTab from "./components/SettingTab"
|
||||||
@ -41,9 +42,7 @@ const extraMenuItems = [
|
|||||||
|
|
||||||
const menuEvents = {
|
const menuEvents = {
|
||||||
"donate": () => {
|
"donate": () => {
|
||||||
if (config.fundingLink) {
|
app.layout.modal.open("donate", DonativeSelector)
|
||||||
window.open(config.fundingLink, "_blank")
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"logout": () => {
|
"logout": () => {
|
||||||
app.eventBus.emit("app.logout_request")
|
app.eventBus.emit("app.logout_request")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user