Skip to content

Commit c426a88

Browse files
committed
update donate text
1 parent d2dbfd3 commit c426a88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Donate.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import React from 'react';
2+
import * as Tools from '../utils/Tools';
23

4+
const cnText = Tools.randomList(['颈椎病晚期', '穷困潦倒', '快交不起房租', '天天加班', '有可能会猝死'], 1)[0];
35
export default function Donate(props) {
46
let text = <h4 className='lang'>Buy <a href='https://twitter.com/unbug' rel='noopener noreferrer' target='_blank'>@unbug</a> a drink</h4>;
57
if (props.isZH) {
6-
text = <h4 className='lang cn'><a href='https://weibo.com/unbug/' rel='noopener noreferrer' target='_blank'>穷困潦倒的作者</a>打赏个红包吧</h4>;
8+
text = <h4 className='lang cn'><a href='https://weibo.com/unbug/' rel='noopener noreferrer' target='_blank'>{cnText}的作者</a>打赏个红包吧</h4>;
79
}
810
return (
911
<div className='donate'>

0 commit comments

Comments
 (0)