@@ -22,10 +22,9 @@ import { useBrowserSteps } from '../../context/browserSteps';
2222interface InterpretationLogProps {
2323 isOpen : boolean ;
2424 setIsOpen : ( isOpen : boolean ) => void ;
25- tutorialMode ?: boolean ;
2625}
2726
28- export const InterpretationLog : React . FC < InterpretationLogProps > = ( { isOpen, setIsOpen, tutorialMode = false } ) => {
27+ export const InterpretationLog : React . FC < InterpretationLogProps > = ( { isOpen, setIsOpen } ) => {
2928 const { t } = useTranslation ( ) ;
3029
3130 const [ captureListData , setCaptureListData ] = useState < any [ ] > ( [ ] ) ;
@@ -146,15 +145,6 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
146145 }
147146 } , [ hasScrapeListAction , hasScrapeSchemaAction , hasScreenshotAction , setIsOpen ] ) ;
148147
149- useEffect ( ( ) => {
150- if (
151- tutorialMode &&
152- ( hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction )
153- ) {
154- setShowPreviewData ( true ) ;
155- setIsOpen ( true ) ; // auto-open drawer
156- }
157- } , [ tutorialMode , hasScrapeListAction , hasScrapeSchemaAction , hasScreenshotAction , setIsOpen ] ) ;
158148
159149 const { darkMode } = useThemeMode ( ) ;
160150
@@ -311,14 +301,13 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
311301 </ TableHead >
312302 < TableBody >
313303 { ( captureListData [ captureListPage ] ?. data || [ ] )
314- . slice ( 0 , tutorialMode ? ( captureListData [ captureListPage ] ?. data ?. length || 0 ) : Math . min ( captureListData [ captureListPage ] ?. limit || 10 , 5 ) )
304+ . slice ( 0 , Math . min ( captureListData [ captureListPage ] ?. limit || 10 , 5 ) )
315305 . map ( ( row : any , rowIndex : any ) => (
316306 < TableRow
317307 key = { rowIndex }
318308 sx = { {
319- borderBottom : rowIndex < ( tutorialMode
320- ? ( captureListData [ captureListPage ] ?. data ?. length || 0 )
321- : Math . min ( ( captureListData [ captureListPage ] ?. data ?. length || 0 ) , Math . min ( captureListData [ captureListPage ] ?. limit || 10 , 5 ) )
309+ borderBottom : rowIndex < (
310+ Math . min ( ( captureListData [ captureListPage ] ?. data ?. length || 0 ) , Math . min ( captureListData [ captureListPage ] ?. limit || 10 , 5 ) )
322311 ) - 1 ? '1px solid' : 'none' ,
323312 borderColor : darkMode ? '#080808ff' : '#dee2e6'
324313 } }
@@ -459,9 +448,6 @@ export const InterpretationLog: React.FC<InterpretationLogProps> = ({ isOpen, se
459448 < Typography variant = "h6" gutterBottom align = "left" >
460449 { t ( 'interpretation_log.messages.successful_training' ) }
461450 </ Typography >
462- { ! tutorialMode && (
463- < SidePanelHeader onPreviewClick = { ( ) => setShowPreviewData ( true ) } />
464- ) }
465451 </ >
466452 ) : (
467453 < Typography variant = "h6" gutterBottom align = "left" >
0 commit comments