rename config-item
This commit is contained in:
@@ -45,7 +45,7 @@ export const Config: TConfig = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// The supported sponsor ways are wechat-pay, alipay and paypal.
|
// The supported sponsor ways are wechat-pay, alipay and paypal.
|
||||||
SponsorLink: {
|
Sponsor: {
|
||||||
// Your WechatPay QRCode Content.
|
// Your WechatPay QRCode Content.
|
||||||
wechatPay: "",
|
wechatPay: "",
|
||||||
// Your Alipay Link.
|
// Your Alipay Link.
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="md:px-15 md:w-1/2">
|
<div className="md:px-15 md:w-1/2">
|
||||||
<div className="mx-2 my-10 flex flex-col justify-around font-bold">
|
<div className="mx-2 my-10 flex flex-col justify-around font-bold">
|
||||||
{!isEmptyString(Config.SponsorLink?.wechatPay) && (
|
{!isEmptyString(Config.Sponsor?.wechatPay) && (
|
||||||
<div className="my-3 flex justify-between">
|
<div className="my-3 flex justify-between">
|
||||||
<div className="my-auto flex">
|
<div className="my-auto flex">
|
||||||
<SiWechat className="mx-3 my-auto text-4xl text-green-500" />
|
<SiWechat className="mx-3 my-auto text-4xl text-green-500" />
|
||||||
@@ -54,12 +54,12 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="my-2 bg-white p-1">
|
<div className="my-2 bg-white p-1">
|
||||||
<QRCodeSVG width={120} value={Config.SponsorLink?.wechatPay!} />
|
<QRCodeSVG width={120} value={Config.Sponsor?.wechatPay!} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<hr />
|
<hr />
|
||||||
{!isEmptyString(Config.SponsorLink?.alipay) && (
|
{!isEmptyString(Config.Sponsor?.alipay) && (
|
||||||
<div className="my-6 flex justify-between">
|
<div className="my-6 flex justify-between">
|
||||||
<div className="my-auto flex">
|
<div className="my-auto flex">
|
||||||
<SiAlipay className="mx-3 my-auto text-4xl text-blue-500" />
|
<SiAlipay className="mx-3 my-auto text-4xl text-blue-500" />
|
||||||
@@ -69,7 +69,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="my-2">
|
<div className="my-2">
|
||||||
<Button className="my-auto" asChild>
|
<Button className="my-auto" asChild>
|
||||||
<Link target="_blank" href={Config.SponsorLink?.alipay!}>
|
<Link target="_blank" href={Config.Sponsor?.alipay!}>
|
||||||
{"DONATE"}
|
{"DONATE"}
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -77,7 +77,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<hr />
|
<hr />
|
||||||
{!isEmptyString(Config.SponsorLink?.paypal) && (
|
{!isEmptyString(Config.Sponsor?.paypal) && (
|
||||||
<div className="my-6 flex justify-between">
|
<div className="my-6 flex justify-between">
|
||||||
<div className="my-auto flex">
|
<div className="my-auto flex">
|
||||||
<FaCcPaypal className="mx-3 my-auto text-4xl text-blue-600" />
|
<FaCcPaypal className="mx-3 my-auto text-4xl text-blue-600" />
|
||||||
@@ -87,7 +87,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="my-2">
|
<div className="my-2">
|
||||||
<Button className="my-auto" asChild>
|
<Button className="my-auto" asChild>
|
||||||
<Link target="_blank" href={Config.SponsorLink?.paypal!}>
|
<Link target="_blank" href={Config.Sponsor?.paypal!}>
|
||||||
{"DONATE"}
|
{"DONATE"}
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
@@ -95,7 +95,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<hr />
|
<hr />
|
||||||
{!isEmptyString(Config.SponsorLink?.patreon) && (
|
{!isEmptyString(Config.Sponsor?.patreon) && (
|
||||||
<div className="my-6 flex justify-between">
|
<div className="my-6 flex justify-between">
|
||||||
<div className="my-auto flex">
|
<div className="my-auto flex">
|
||||||
<SiPatreon className="mx-3 my-auto text-4xl text-gray-500" />
|
<SiPatreon className="mx-3 my-auto text-4xl text-gray-500" />
|
||||||
@@ -105,7 +105,7 @@ export default function AboutPage() {
|
|||||||
</div>
|
</div>
|
||||||
<div className="my-2">
|
<div className="my-2">
|
||||||
<Button className="my-auto" asChild>
|
<Button className="my-auto" asChild>
|
||||||
<Link target="_blank" href={`https://patreon.com/${Config.SponsorLink?.patreon}`}>
|
<Link target="_blank" href={`https://patreon.com/${Config.Sponsor?.patreon}`}>
|
||||||
{"DONATE"}
|
{"DONATE"}
|
||||||
</Link>
|
</Link>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export type TConfig = {
|
|||||||
categoryId: string;
|
categoryId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
SponsorLink?: {
|
Sponsor?: {
|
||||||
wechatPay?: string;
|
wechatPay?: string;
|
||||||
alipay?: string;
|
alipay?: string;
|
||||||
paypal?: string;
|
paypal?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user