|
@@ -1,6 +1,5 @@
|
|
|
-import React, { useContext } from 'react';
|
|
|
+import { useContext } from 'react';
|
|
|
import ItemList from 'components/ItemList';
|
|
|
-import { Typography } from '@mui/material';
|
|
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
|
import { ResultItemContainer } from './styledComponents';
|
|
|
import { UPLOAD_RESULT } from 'constants/upload';
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
UploadProgressSectionTitle,
|
|
|
} from './section';
|
|
|
import UploadProgressContext from 'contexts/uploadProgress';
|
|
|
+import { CaptionedText } from 'components/CaptionedText';
|
|
|
|
|
|
export interface ResultSectionProps {
|
|
|
uploadResult: UPLOAD_RESULT;
|
|
@@ -46,7 +46,10 @@ export const ResultSection = (props: ResultSectionProps) => {
|
|
|
return (
|
|
|
<UploadProgressSection>
|
|
|
<UploadProgressSectionTitle expandIcon={<ExpandMoreIcon />}>
|
|
|
- <Typography> {props.sectionTitle}</Typography>
|
|
|
+ <CaptionedText
|
|
|
+ mainText={props.sectionTitle}
|
|
|
+ subText={String(fileList?.length ?? 0)}
|
|
|
+ />
|
|
|
</UploadProgressSectionTitle>
|
|
|
<UploadProgressSectionContent>
|
|
|
{props.sectionInfo && (
|