@@ -41,51 +41,49 @@ const DataSamplesTableRow = ({
4141 const intl = useIntl ( ) ;
4242
4343 return (
44- < >
45- < Box
46- ref = { selected ? renameShortcutScopeRef : undefined }
47- role = "region"
48- aria-label = { intl . formatMessage (
49- {
50- id : "action-region" ,
51- } ,
52- { action : action . name }
53- ) }
54- display = "contents"
55- onFocusCapture = { onSelectRow }
56- >
44+ < Box
45+ ref = { selected ? renameShortcutScopeRef : undefined }
46+ role = "region"
47+ aria-label = { intl . formatMessage (
48+ {
49+ id : "action-region" ,
50+ } ,
51+ { action : action . name }
52+ ) }
53+ display = "contents"
54+ onFocusCapture = { onSelectRow }
55+ >
56+ < GridItem >
57+ < ActionNameCard
58+ value = { action }
59+ onDeleteAction = { onDeleteAction }
60+ onSelectRow = { onSelectRow }
61+ selected = { selected }
62+ viewMode = {
63+ preview
64+ ? ActionCardNameViewMode . Preview
65+ : ActionCardNameViewMode . Editable
66+ }
67+ />
68+ </ GridItem >
69+ { showHints ? (
70+ < DataSamplesTableHints action = { action } onRecord = { onRecord } />
71+ ) : (
5772 < GridItem >
58- < ActionNameCard
59- value = { action }
60- onDeleteAction = { onDeleteAction }
61- onSelectRow = { onSelectRow }
62- selected = { selected }
63- viewMode = {
64- preview
65- ? ActionCardNameViewMode . Preview
66- : ActionCardNameViewMode . Editable
67- }
68- />
73+ { ( action . name . length > 0 || action . recordings . length > 0 ) && (
74+ < ActionDataSamplesCard
75+ preview = { preview }
76+ newRecordingId = { newRecordingId }
77+ value = { action }
78+ selected = { selected }
79+ onSelectRow = { onSelectRow }
80+ onRecord = { onRecord }
81+ clearNewRecordingId = { clearNewRecordingId }
82+ />
83+ ) }
6984 </ GridItem >
70- { showHints ? (
71- < DataSamplesTableHints action = { action } onRecord = { onRecord } />
72- ) : (
73- < GridItem >
74- { ( action . name . length > 0 || action . recordings . length > 0 ) && (
75- < ActionDataSamplesCard
76- preview = { preview }
77- newRecordingId = { newRecordingId }
78- value = { action }
79- selected = { selected }
80- onSelectRow = { onSelectRow }
81- onRecord = { onRecord }
82- clearNewRecordingId = { clearNewRecordingId }
83- />
84- ) }
85- </ GridItem >
86- ) }
87- </ Box >
88- </ >
85+ ) }
86+ </ Box >
8987 ) ;
9088} ;
9189
0 commit comments