Skip to content

Commit f3811a1

Browse files
fix(ui): update hard-coded logo paths to reference theme config (#15084)
Co-authored-by: yorubaphenom <63619648+yorubaphenom@users.noreply.github.com>
1 parent 0771036 commit f3811a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

datahub-web-react/src/app/shared/error/ErrorSection.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import React from 'react';
33
import styled, { useTheme } from 'styled-components';
44

55
import { ANTD_GRAY } from '@app/entity/shared/constants';
6-
7-
import dataHubLogo from '@images/datahublogo.png';
6+
import { resolveRuntimePath } from '@utils/runtimeBasePath';
87

98
const Section = styled.div`
109
width: auto;
@@ -61,12 +60,13 @@ const resources = [
6160

6261
export const ErrorSection = (): JSX.Element => {
6362
const themeConfig = useTheme();
63+
const themeLogo = resolveRuntimePath(themeConfig.assets.logoUrl || '@images/datahublogo.png');
6464

6565
return (
6666
<Section>
6767
<div>
6868
<TitleSection>
69-
<Image src={dataHubLogo} preview={false} style={{ width: 40 }} />
69+
<Image src={themeLogo} preview={false} style={{ width: 40 }} />
7070
<TitleText strong>{themeConfig.content.title}</TitleText>
7171
</TitleSection>
7272
<MessageSection>

0 commit comments

Comments
 (0)