Skip to content

Commit d63cb09

Browse files
committed
frontend lint
1 parent 0382530 commit d63cb09

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

datahub-web-react/src/app/entity/dataProcessInstance/profile/DataProcessInstanceSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function MLModelSummary() {
4646
if (!state || state.length === 0) return '-';
4747
const result = state[0]?.result?.resultType;
4848
const statusColor = result === DataProcessInstanceRunResultType.Success ? 'green' : 'red';
49-
return <Pill label={capitalize(result)} colorScheme={statusColor} clickable={false} />;
49+
return <Pill label={capitalize(result)} color={statusColor} clickable={false} />;
5050
};
5151

5252
const formatDuration = (state) => {

datahub-web-react/src/app/entity/mlModel/profile/MLModelSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default function MLModelSummary() {
111111
<Pill
112112
label={alias.versionTag ?? '-'}
113113
key={alias.versionTag}
114-
colorScheme="blue"
114+
color="blue"
115115
clickable={false}
116116
/>
117117
))}

datahub-web-react/src/app/entity/mlModelGroup/profile/ModelGroupModels.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,7 @@ export default function MLGroupModels() {
118118
return (
119119
<TagContainer>
120120
{aliases.map((alias) => (
121-
<Pill
122-
key={alias.versionTag}
123-
label={alias.versionTag}
124-
colorScheme="blue"
125-
clickable={false}
126-
/>
121+
<Pill key={alias.versionTag} label={alias.versionTag} color="blue" clickable={false} />
127122
))}
128123
</TagContainer>
129124
);

datahub-web-react/src/app/entity/shared/containers/profile/header/StructuredPropertyBadge.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,7 @@ const StructuredPropertyBadge = ({ structuredProperties }: Props) => {
7878
overlayInnerStyle={{ width: 250, padding: 16 }}
7979
>
8080
<BadgeContainer>
81-
<Pill
82-
label={propRow?.values[0]?.value?.toString() || ''}
83-
size="sm"
84-
colorScheme="violet"
85-
clickable={false}
86-
/>
81+
<Pill label={propRow?.values[0]?.value?.toString() || ''} size="sm" color="violet" clickable={false} />
8782
</BadgeContainer>
8883
</StyledTooltip>
8984
);

datahub-web-react/src/app/entityV2/dataProcessInstance/profile/DataProcessInstanceSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function DataProcessInstanceSummary() {
4646
if (!state || state.length === 0) return '-';
4747
const result = state[0]?.result?.resultType;
4848
const statusColor = result === DataProcessInstanceRunResultType.Success ? 'green' : 'red';
49-
return <Pill label={capitalize(result)} colorScheme={statusColor} clickable={false} />;
49+
return <Pill label={capitalize(result)} color={statusColor} clickable={false} />;
5050
};
5151

5252
const formatDuration = (state) => {

datahub-web-react/src/app/preview/DataProcessInstanceRightColumn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function DataProcessInstanceRightColumn({ startTime, duration, st
7878
{status && (
7979
<>
8080
<StatContainer>
81-
<Pill label={capitalize(status)} colorScheme={statusPillColor} clickable={false} />
81+
<Pill label={capitalize(status)} color={statusPillColor} clickable={false} />
8282
</StatContainer>
8383
</>
8484
)}

0 commit comments

Comments
 (0)