diff --git a/data/config.ts b/data/config.ts index 5b530b9..6878b47 100644 --- a/data/config.ts +++ b/data/config.ts @@ -45,7 +45,7 @@ export const Config: TConfig = { }, // The supported sponsor ways are wechat-pay, alipay and paypal. - SponsorLink: { + Sponsor: { // Your WechatPay QRCode Content. wechatPay: "", // Your Alipay Link. diff --git a/pages/sponsor.tsx b/pages/sponsor.tsx index 83a52a5..e4c0e3a 100644 --- a/pages/sponsor.tsx +++ b/pages/sponsor.tsx @@ -45,7 +45,7 @@ export default function AboutPage() {
- {!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;