File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2
2
"$schema" : " https://www.raycast.com/schemas/extension.json" ,
3
3
"name" : " openjike" ,
4
4
"title" : " OpenJike" ,
5
+ "version" : " 0.0.0" ,
5
6
"description" : " " ,
6
7
"icon" : " command-icon.png" ,
7
8
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -49,7 +49,14 @@ export const LikePost = ({
49
49
style : Toast . Style . Success ,
50
50
} )
51
51
}
52
- return < Action icon = "👍" title = "点赞" onAction = { action } />
52
+ return (
53
+ < Action
54
+ icon = "👍"
55
+ title = "点赞"
56
+ shortcut = { { modifiers : [ 'cmd' ] , key : 'l' } }
57
+ onAction = { action }
58
+ />
59
+ )
53
60
}
54
61
55
62
export const UnlikePost = ( {
@@ -68,5 +75,12 @@ export const UnlikePost = ({
68
75
style : Toast . Style . Success ,
69
76
} )
70
77
}
71
- return < Action icon = "💔" title = "取消点赞" onAction = { action } />
78
+ return (
79
+ < Action
80
+ icon = "💔"
81
+ title = "取消点赞"
82
+ shortcut = { { modifiers : [ 'cmd' , 'opt' ] , key : 'l' } }
83
+ onAction = { action }
84
+ />
85
+ )
72
86
}
You can’t perform that action at this time.
0 commit comments