Commit 3fc3f840 authored by XieZhiXiong's avatar XieZhiXiong

更名

parent 86a5e33e
......@@ -67,10 +67,10 @@ const ContentBox: React.FC<ContentBoxProps> = ({
);
interface MoodProps {
type: 'smile' | 'noBad' | 'sad';
type: 'smile' | 'notBad' | 'sad';
};
const Mood: React.FC<MoodProps> = ({ type = 'smile' }): React.ReactNode => {
const Mood: React.FC<MoodProps> = ({ type = 'smile' }) => {
let node = null;
switch (type) {
......@@ -78,7 +78,7 @@ const Mood: React.FC<MoodProps> = ({ type = 'smile' }): React.ReactNode => {
node = <><SmileFilled style={{ color: '#41CC9E', marginRight: 4 }} /> 好评</>;
break;
case 'noBad':
case 'notBad':
node = <><MehFilled style={{ color: '#FFC400', marginRight: 4 }} /> 中评</>;
break;
......@@ -289,7 +289,7 @@ const SincerityInfo: React.FC<{}> = props => {
},
{
id: 2,
title: (<Mood type="noBad" />),
title: (<Mood type="notBad" />),
day7: 10,
day30: 10,
day180: 10,
......@@ -424,7 +424,7 @@ const SincerityInfo: React.FC<{}> = props => {
extra={(
<Radio.Group onChange={() => {}}>
<Radio.Button value="good">好评</Radio.Button>
<Radio.Button value="noBad">中评</Radio.Button>
<Radio.Button value="notBad">中评</Radio.Button>
<Radio.Button value="bad">差评</Radio.Button>
<Radio.Button value="all">全部</Radio.Button>
</Radio.Group>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment