Skip to content

Commit 412e078

Browse files
committed
temp: use deprecated truncate component
1 parent 5614ddf commit 412e078

File tree

11 files changed

+18
-18
lines changed

11 files changed

+18
-18
lines changed

src/course-outline/card-header/TitleButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TitleButton = ({
3939
className="item-card-header__title-btn"
4040
onClick={onTitleClick}
4141
>
42-
<Truncate lines={1} className={`${namePrefix}-card-title mb-0`}>{title}</Truncate>
42+
<Truncate.Deprecated lines={1} className={`${namePrefix}-card-title mb-0`}>{title}</Truncate.Deprecated>
4343
</Button>
4444
</OverlayTrigger>
4545
);

src/course-outline/card-header/TitleLink.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TitleLink = ({
1414
className="item-card-header__title-btn"
1515
to={titleLink}
1616
>
17-
<Truncate lines={1} className={`${namePrefix}-card-title mb-0`}>{title}</Truncate>
17+
<Truncate.Deprecated lines={1} className={`${namePrefix}-card-title mb-0`}>{title}</Truncate.Deprecated>
1818
</Button>
1919
);
2020

src/course-outline/page-alerts/PageAlerts.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ const PageAlerts = ({
367367
}
368368
case API_ERROR_TYPES.serverError: {
369369
const description = (
370-
<Truncate lines={2}>
370+
<Truncate.Deprecated lines={2}>
371371
{v.data || intl.formatMessage(messages.serverErrorAlertBody)}
372-
</Truncate>
372+
</Truncate.Deprecated>
373373
);
374374
return {
375375
key: k,

src/editors/containers/EditorContainer/components/TitleHeader/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ const TitleHeader = ({
4949
}
5050
return (
5151
<div className="d-flex flex-row align-items-center mt-1">
52-
<Truncate>
52+
<Truncate.Deprecated>
5353
{title}
54-
</Truncate>
54+
</Truncate.Deprecated>
5555
<IconButton
5656
alt={intl.formatMessage(messages.editTitleLabel)}
5757
iconAs={Icon}

src/editors/sharedComponents/SelectionModal/GalleryCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const GalleryCard = ({
6666
</div>
6767
<div className="card-text px-3 py-2" style={{ marginTop: '10px' }}>
6868
<h3 className="text-primary-500">
69-
<Truncate>{asset.displayName}</Truncate>
69+
<Truncate.Deprecated>{asset.displayName}</Truncate.Deprecated>
7070
</h3>
7171
{ asset.transcripts && (
7272
<div style={{ margin: '0 0 5px 0' }}>

src/files-and-videos/files-page/FileInfoModalSidebar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ const FileInfoModalSidebar = ({
5757
</div>
5858
<ActionRow>
5959
<div style={{ wordBreak: 'break-word' }}>
60-
<Truncate lines={1}>
60+
<Truncate.Deprecated lines={1}>
6161
{asset?.portableUrl}
62-
</Truncate>
62+
</Truncate.Deprecated>
6363
</div>
6464
<ActionRow.Spacer />
6565
<IconButton

src/files-and-videos/generic/DeleteConfirmationModal.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ const DeleteConfirmationModal = ({
3535
styling="basic"
3636
title={(
3737
<h3 className="h5 m-n2">
38-
<Truncate lines={1}>
38+
<Truncate.Deprecated lines={1}>
3939
{original.displayName}
40-
</Truncate>
40+
</Truncate.Deprecated>
4141
</h3>
4242
)}
4343
data-testid={`collapsible-${original.id}`}

src/files-and-videos/generic/InfoModal.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ const InfoModal = ({
4848
<ModalDialog.Header>
4949
<ModalDialog.Title>
5050
<div style={{ wordBreak: 'break-word' }}>
51-
<Truncate lines={2} className="font-weight-bold small mt-3">
51+
<Truncate.Deprecated lines={2} className="font-weight-bold small mt-3">
5252
{file?.displayName}
53-
</Truncate>
53+
</Truncate.Deprecated>
5454
</div>
5555
</ModalDialog.Title>
5656
</ModalDialog.Header>

src/files-and-videos/generic/table-components/GalleryCard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ const GalleryCard = ({
6767
/>
6868
</div>
6969
<div style={{ wordBreak: 'break-word' }}>
70-
<Truncate lines={1} className="font-weight-bold mt-2 picture-title">
70+
<Truncate.Deprecated lines={1} className="font-weight-bold mt-2 picture-title">
7171
{original.displayName}
72-
</Truncate>
72+
</Truncate.Deprecated>
7373
</div>
7474
</Card.Section>
7575
<Card.Footer className="p-3 pt-4 row m-0 flex-row-reverse justify-content-between align-items-center">

src/files-and-videos/videos-page/upload-modal/UploadProgressList.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ const UploadProgressList = ({ videosList }) => (
2525
<Stack role="listitem" gap={2} direction="horizontal" className="mb-3 small" key={id}>
2626
<span>{bulletNumber}</span>
2727
<div className="col-5 pl-0">
28-
<Truncate>
28+
<Truncate.Deprecated>
2929
{video.name}
30-
</Truncate>
30+
</Truncate.Deprecated>
3131
</div>
3232
<div className="col-6 p-0">
3333
<span className="row m-0 justify-content-end font-weight-bold">

0 commit comments

Comments
 (0)