feat: remove input tab

This commit is contained in:
karishmas6
2024-10-24 04:41:11 +05:30
parent c578114e98
commit e6bc2518c2

View File

@@ -53,7 +53,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
<Box sx={{ borderBottom: 1, borderColor: 'divider' }}> <Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
<Tabs value={tab} onChange={(e, newTab) => setTab(newTab)} aria-label="run-content-tabs"> <Tabs value={tab} onChange={(e, newTab) => setTab(newTab)} aria-label="run-content-tabs">
<Tab label="Log" value='log' /> <Tab label="Log" value='log' />
<Tab label="Input" value='input' /> {/* <Tab label="Input" value='input' /> */}
<Tab label="Output Data" value='output' /> <Tab label="Output Data" value='output' />
</Tabs> </Tabs>
</Box> </Box>
@@ -82,7 +82,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
Stop Stop
</Button> : null} </Button> : null}
</TabPanel> </TabPanel>
<TabPanel value='input' sx={{ width: '700px' }}> {/* <TabPanel value='input' sx={{ width: '700px' }}>
<Typography variant='h6' sx={{ display: 'flex', alignItems: 'center' }}> <Typography variant='h6' sx={{ display: 'flex', alignItems: 'center' }}>
<SettingsIcon sx={{ marginRight: '15px' }} /> <SettingsIcon sx={{ marginRight: '15px' }} />
Interpreter settings Interpreter settings
@@ -117,7 +117,7 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
) )
}) })
} }
</TabPanel> </TabPanel> */}
<TabPanel value='output' sx={{ width: '700px' }}> <TabPanel value='output' sx={{ width: '700px' }}>
{!row || !row.serializableOutput || !row.binaryOutput {!row || !row.serializableOutput || !row.binaryOutput
|| (Object.keys(row.serializableOutput).length === 0 && Object.keys(row.binaryOutput).length === 0) || (Object.keys(row.serializableOutput).length === 0 && Object.keys(row.binaryOutput).length === 0)