File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
datahub-web-react/src/app/shared/error Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import React from 'react';
33import styled , { useTheme } from 'styled-components' ;
44
55import { ANTD_GRAY } from '@app/entity/shared/constants' ;
6-
7- import dataHubLogo from '@images/datahublogo.png' ;
6+ import { resolveRuntimePath } from '@utils/runtimeBasePath' ;
87
98const Section = styled . div `
109 width: auto;
@@ -61,12 +60,13 @@ const resources = [
6160
6261export 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 >
You can’t perform that action at this time.
0 commit comments