Skip to content

Commit ff2f8f3

Browse files
committed
Update DatasetImportContext to conditionally render MyStep component based on data source type, improving the import process for non-image datasets.
1 parent d173bf4 commit ff2f8f3

File tree

1 file changed

+15
-13
lines changed
  • projects/app/src/pageComponents/dataset/detail/Import

1 file changed

+15
-13
lines changed

projects/app/src/pageComponents/dataset/detail/Import/Context.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -253,20 +253,22 @@ const DatasetImportContextProvider = ({ children }: { children: React.ReactNode
253253
<Box flex={1} />
254254
</Flex>
255255
{/* step */}
256-
<Box
257-
mt={4}
258-
mb={5}
259-
px={3}
260-
py={[2, 4]}
261-
bg={'myGray.50'}
262-
borderWidth={'1px'}
263-
borderColor={'borderColor.low'}
264-
borderRadius={'md'}
265-
>
266-
<Box maxW={['100%', '900px']} mx={'auto'}>
267-
<MyStep />
256+
{source !== ImportDataSourceEnum.imageDataset && (
257+
<Box
258+
mt={4}
259+
mb={5}
260+
px={3}
261+
py={[2, 4]}
262+
bg={'myGray.50'}
263+
borderWidth={'1px'}
264+
borderColor={'borderColor.low'}
265+
borderRadius={'md'}
266+
>
267+
<Box maxW={['100%', '900px']} mx={'auto'}>
268+
<MyStep />
269+
</Box>
268270
</Box>
269-
</Box>
271+
)}
270272
{children}
271273
</DatasetImportContext.Provider>
272274
);

0 commit comments

Comments
 (0)