mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-04 06:33:10 +00:00
fix the description renderer in team and user import (#19492)
This commit is contained in:
parent
4059df8843
commit
6c381b1ce1
@ -19,6 +19,7 @@ import { ReactComponent as FailBadgeIcon } from '../../../../assets/svg/fail-bad
|
|||||||
import { ReactComponent as SuccessBadgeIcon } from '../../../../assets/svg/success-badge.svg';
|
import { ReactComponent as SuccessBadgeIcon } from '../../../../assets/svg/success-badge.svg';
|
||||||
import { Status } from '../../../../generated/type/csvImportResult';
|
import { Status } from '../../../../generated/type/csvImportResult';
|
||||||
import { parseCSV } from '../../../../utils/EntityImport/EntityImportUtils';
|
import { parseCSV } from '../../../../utils/EntityImport/EntityImportUtils';
|
||||||
|
import RichTextEditorPreviewerV1 from '../../../common/RichTextEditor/RichTextEditorPreviewerV1';
|
||||||
import Table from '../../../common/Table/Table';
|
import Table from '../../../common/Table/Table';
|
||||||
import {
|
import {
|
||||||
TeamCSVRecord,
|
TeamCSVRecord,
|
||||||
@ -102,14 +103,12 @@ export const TeamImportResult = ({
|
|||||||
width: 300,
|
width: 300,
|
||||||
render: (description: TeamCSVRecord['description']) => {
|
render: (description: TeamCSVRecord['description']) => {
|
||||||
return (
|
return (
|
||||||
<Typography.Paragraph
|
<RichTextEditorPreviewerV1
|
||||||
ellipsis={{
|
className="w-80"
|
||||||
rows: 2,
|
enableSeeMoreVariant={false}
|
||||||
}}
|
markdown={description}
|
||||||
style={{ width: 300 }}
|
reducePreviewLineClass="max-one-line"
|
||||||
title={description}>
|
/>
|
||||||
{description || '--'}
|
|
||||||
</Typography.Paragraph>
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -19,6 +19,7 @@ import { ReactComponent as FailBadgeIcon } from '../../../../assets/svg/fail-bad
|
|||||||
import { ReactComponent as SuccessBadgeIcon } from '../../../../assets/svg/success-badge.svg';
|
import { ReactComponent as SuccessBadgeIcon } from '../../../../assets/svg/success-badge.svg';
|
||||||
import { Status } from '../../../../generated/type/csvImportResult';
|
import { Status } from '../../../../generated/type/csvImportResult';
|
||||||
import { parseCSV } from '../../../../utils/EntityImport/EntityImportUtils';
|
import { parseCSV } from '../../../../utils/EntityImport/EntityImportUtils';
|
||||||
|
import RichTextEditorPreviewerV1 from '../../../common/RichTextEditor/RichTextEditorPreviewerV1';
|
||||||
import Table from '../../../common/Table/Table';
|
import Table from '../../../common/Table/Table';
|
||||||
import {
|
import {
|
||||||
UserCSVRecord,
|
UserCSVRecord,
|
||||||
@ -102,14 +103,12 @@ export const UserImportResult = ({
|
|||||||
width: 300,
|
width: 300,
|
||||||
render: (description: string) => {
|
render: (description: string) => {
|
||||||
return (
|
return (
|
||||||
<Typography.Paragraph
|
<RichTextEditorPreviewerV1
|
||||||
ellipsis={{
|
className="w-80"
|
||||||
rows: 2,
|
enableSeeMoreVariant={false}
|
||||||
}}
|
markdown={description}
|
||||||
style={{ width: 300 }}
|
reducePreviewLineClass="max-one-line"
|
||||||
title={description}>
|
/>
|
||||||
{description || '--'}
|
|
||||||
</Typography.Paragraph>
|
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user