File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export const OperationCard = ({
58
58
< div className = "flex-1" />
59
59
< div className = "flex flex-col items-end" >
60
60
< div className = "w-full flex justify-end text-zinc-500" >
61
- { ! operation . isNotEnoughRating && (
61
+ { ! operation . notEnoughRating && (
62
62
< div className = "flex items-center mr-4" >
63
63
< Icon icon = "star" className = "mr-1.5" />
64
64
< OperationRating
Original file line number Diff line number Diff line change @@ -8,10 +8,7 @@ import { Operation } from 'models/operation'
8
8
import { ratingLevelToString } from 'models/rating'
9
9
10
10
export const OperationRating : FC < {
11
- operation : Pick <
12
- Operation ,
13
- 'isNotEnoughRating' | 'ratingRatio' | 'ratingLevel'
14
- >
11
+ operation : Pick < Operation , 'notEnoughRating' | 'ratingRatio' | 'ratingLevel' >
15
12
layout ?: 'horizontal' | 'vertical'
16
13
className ?: string
17
14
} > = ( { operation, layout = 'vertical' , className } ) => {
@@ -24,7 +21,7 @@ export const OperationRating: FC<{
24
21
className ,
25
22
) }
26
23
>
27
- { ! operation . isNotEnoughRating && (
24
+ { ! operation . notEnoughRating && (
28
25
< Rating
29
26
initialRating = { operation . ratingRatio * 5 }
30
27
fullSymbol = {
@@ -60,10 +57,10 @@ export const OperationRating: FC<{
60
57
< div
61
58
className = { clsx (
62
59
'text-sm text-zinc-500' ,
63
- layout === 'horizontal' && ! operation . isNotEnoughRating && 'mr-1.5' ,
60
+ layout === 'horizontal' && ! operation . notEnoughRating && 'mr-1.5' ,
64
61
) }
65
62
>
66
- { operation . isNotEnoughRating
63
+ { operation . notEnoughRating
67
64
? layout === 'vertical'
68
65
? '还没有足够的评分'
69
66
: '评分不足'
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export interface Operation {
16
16
ratingLevel : number // integer in [0, 10]
17
17
ratingRatio : number
18
18
ratingType : OpRatingType
19
- isNotEnoughRating : boolean
19
+ notEnoughRating : boolean
20
20
difficulty : OpDifficulty
21
21
}
22
22
You can’t perform that action at this time.
0 commit comments