Skip to content

Commit 97f1868

Browse files
refactor(InfoRow.tsx): simplify InfoRow component structure and remove usecase descriptions
1 parent 0769aff commit 97f1868

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

src/pages/Videos/parts/InfoRow.tsx

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,15 @@ export const InfoRow = ({ uc }: { uc: CampaignVideos[number] }) => {
3434
const { usecase, videos } = uc;
3535

3636
return (
37-
<>
38-
<StyledDiv>
39-
<MD>
40-
<Span isBold>{usecase.title} </Span>
41-
<Span style={{ color: appTheme.palette.grey[600] }}>
42-
{`(${videos.total} ${t('__VIDEOS_LIST_USECASE_INFO', {
43-
count: videos.total,
44-
})})`}
45-
</Span>
46-
</MD>
47-
</StyledDiv>
48-
<EditorContainer>
49-
<Editor key={Math.random()} editable={false}>
50-
{usecase.description}
51-
</Editor>
52-
</EditorContainer>
53-
</>
37+
<StyledDiv>
38+
<MD>
39+
<Span isBold>{usecase.title} </Span>
40+
<Span style={{ color: appTheme.palette.grey[600] }}>
41+
{`(${videos.total} ${t('__VIDEOS_LIST_USECASE_INFO', {
42+
count: videos.total,
43+
})})`}
44+
</Span>
45+
</MD>
46+
</StyledDiv>
5447
);
5548
};

0 commit comments

Comments
 (0)