- {!isEmptyString(Config.SponsorLink?.wechatPay) && (
+ {!isEmptyString(Config.Sponsor?.wechatPay) && (
@@ -54,12 +54,12 @@ export default function AboutPage() {
-
+
- {!isEmptyString(Config.SponsorLink?.alipay) && (
+ {!isEmptyString(Config.Sponsor?.alipay) && (
@@ -69,7 +69,7 @@ export default function AboutPage() {
@@ -77,7 +77,7 @@ export default function AboutPage() {
)}
- {!isEmptyString(Config.SponsorLink?.paypal) && (
+ {!isEmptyString(Config.Sponsor?.paypal) && (
@@ -87,7 +87,7 @@ export default function AboutPage() {
@@ -95,7 +95,7 @@ export default function AboutPage() {
)}
- {!isEmptyString(Config.SponsorLink?.patreon) && (
+ {!isEmptyString(Config.Sponsor?.patreon) && (
@@ -105,7 +105,7 @@ export default function AboutPage() {
diff --git a/types/config.type.ts b/types/config.type.ts
index 465eef4..eea1b0a 100644
--- a/types/config.type.ts
+++ b/types/config.type.ts
@@ -32,7 +32,7 @@ export type TConfig = {
categoryId: string;
};
- SponsorLink?: {
+ Sponsor?: {
wechatPay?: string;
alipay?: string;
paypal?: string;