From 0bdb863ffe93adaf1195297512ef10eb6d587377 Mon Sep 17 00:00:00 2001 From: Mactavish Cui Date: Fri, 10 Jan 2025 10:29:17 +0800 Subject: [PATCH] [Optimization-4134][Web] Optimization home page icon and job detail lineage under dark theme (#4135) --- dinky-web/src/components/Icons/HomeIcon.tsx | 4 ---- .../src/pages/DevOps/JobDetail/JobLineage/index.tsx | 9 ++++++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dinky-web/src/components/Icons/HomeIcon.tsx b/dinky-web/src/components/Icons/HomeIcon.tsx index a7350c0230..1390e8c0dd 100644 --- a/dinky-web/src/components/Icons/HomeIcon.tsx +++ b/dinky-web/src/components/Icons/HomeIcon.tsx @@ -33,10 +33,6 @@ export const ClusterInstanceIcon = (props: any) => { version='1.1' xmlns='http://www.w3.org/2000/svg' > - { const { @@ -34,6 +36,9 @@ const JobLineage = (props: { jobDetail: { id: number } }) => { tables: [], relations: [] }); + + const theme = useTheme() as 'realDark' | 'light'; + const queryLineageData = () => { queryDataByParams(API_CONSTANTS.JOB_INSTANCE_GET_LINEAGE, { id: jobInstanceId }).then((res) => setLineageData(res as LineageDetailInfo) @@ -52,7 +57,9 @@ const JobLineage = (props: { jobDetail: { id: number } }) => { style={{ height: parent.innerHeight - 180 }} > {lineageData && (lineageData.tables.length !== 0 || lineageData.relations.length !== 0) ? ( - + + + ) : ( )}