@@ -21,17 +21,14 @@ import { useThemeMode } from '../../context/theme-provider';
2121import { useTranslation } from 'react-i18next' ;
2222import { useBrowserSteps } from '../../context/browserSteps' ;
2323import { useActionContext } from '../../context/browserActions' ;
24- import { useTutorial } from '../../context/tutorial' ;
2524
2625interface InterpretationLogProps {
2726 isOpen : boolean ;
2827 setIsOpen : ( isOpen : boolean ) => void ;
29- tutorialMode ?: boolean ;
3028}
3129
32- export const InterpretationLog : React . FC < InterpretationLogProps > = ( { isOpen, setIsOpen, tutorialMode = false } ) => {
30+ export const InterpretationLog : React . FC < InterpretationLogProps > = ( { isOpen, setIsOpen } ) => {
3331 const { t } = useTranslation ( ) ;
34- const tutorial = tutorialMode ? useTutorial ( ) : null ;
3532
3633 const [ captureListData , setCaptureListData ] = useState < any [ ] > ( [ ] ) ;
3734 const [ captureTextData , setCaptureTextData ] = useState < any [ ] > ( [ ] ) ;
@@ -108,11 +105,6 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
108105
109106 setEditingField ( null ) ;
110107 setEditingValue ( '' ) ;
111-
112- // Advance tutorial if in tutorial mode
113- if ( tutorialMode && tutorial ) {
114- tutorial . handleFieldLabelsEdited ( ) ;
115- }
116108 }
117109 } ;
118110
@@ -154,11 +146,6 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
154146
155147 setEditingListName ( null ) ;
156148 setEditingListNameValue ( '' ) ;
157-
158- // Advance tutorial if in tutorial mode
159- if ( tutorialMode && tutorial ) {
160- tutorial . handleListNameEdited ( ) ;
161- }
162149 }
163150 } ;
164151
@@ -794,14 +781,12 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
794781 </ TableHead >
795782 < TableBody >
796783 { ( captureListData [ activeListTab ] ?. data || [ ] )
797- . slice ( 0 , tutorialMode ? ( captureListData [ activeListTab ] ?. data ?. length || 0 ) : Math . min ( captureListData [ activeListTab ] ?. limit || 10 , 5 ) )
784+ . slice ( 0 , Math . min ( captureListData [ activeListTab ] ?. limit || 10 , 5 ) )
798785 . map ( ( row : any , rowIndex : any ) => (
799786 < TableRow
800787 key = { rowIndex }
801788 sx = { {
802- borderBottom : rowIndex < ( tutorialMode
803- ? ( captureListData [ activeListTab ] ?. data ?. length || 0 )
804- : Math . min ( ( captureListData [ activeListTab ] ?. data ?. length || 0 ) , Math . min ( captureListData [ activeListTab ] ?. limit || 10 , 5 ) )
789+ borderBottom : rowIndex < ( Math . min ( ( captureListData [ activeListTab ] ?. data ?. length || 0 ) , Math . min ( captureListData [ activeListTab ] ?. limit || 10 , 5 ) )
805790 ) - 1 ? '1px solid' : 'none' ,
806791 borderColor : darkMode ? '#080808ff' : '#dee2e6'
807792 } }
0 commit comments