File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import { FactItem } from 'components/FactItem'
9
9
import type { CopilotDocV1 } from 'models/copilot.schema'
10
10
import { findActionType } from 'models/types'
11
11
12
+ import {
13
+ findOperatorDirection ,
14
+ findOperatorSkillUsage ,
15
+ } from '../../models/operator'
12
16
import { formatDuration } from '../../utils/times'
13
17
14
18
const actionKey = ( action : CopilotDocV1 . Action , index ?: number ) =>
@@ -67,7 +71,7 @@ export const ViewerActions: FC<{
67
71
title = "切换技能用法至"
68
72
icon = "swap-horizontal"
69
73
>
70
- { action . skillUsage }
74
+ { findOperatorSkillUsage ( action . skillUsage ) . title }
71
75
</ FactItem >
72
76
) }
73
77
@@ -82,7 +86,9 @@ export const ViewerActions: FC<{
82
86
83
87
{ 'direction' in action && (
84
88
< FactItem dense title = "朝向" icon = "compass" >
85
- < span className = "font-mono" > { action . direction } </ span >
89
+ < span className = "font-mono" >
90
+ { findOperatorDirection ( action . direction ) . title }
91
+ </ span >
86
92
</ FactItem >
87
93
) }
88
94
</ div >
You can’t perform that action at this time.
0 commit comments