diff --git a/src/components/document-read-only-page/document-infobar.tsx b/src/components/document-read-only-page/document-infobar.tsx index 72dd2e7ce..ce19da133 100644 --- a/src/components/document-read-only-page/document-infobar.tsx +++ b/src/components/document-read-only-page/document-infobar.tsx @@ -14,6 +14,7 @@ import { DocumentInfoTimeLine } from '../editor-page/document-bar/document-info/document-info-time-line' import './document-infobar.scss' +import { useCustomizeAssetsUrl } from '../../hooks/common/use-customize-assets-url' export interface DocumentInfobarProps { changedAuthor: string @@ -35,6 +36,7 @@ export const DocumentInfobar: React.FC = ({ viewCount }) => { const { t } = useTranslation() + const assetsBaseUrl = useCustomizeAssetsUrl() return (
@@ -45,12 +47,12 @@ export const DocumentInfobar: React.FC = ({ mode={ DocumentInfoLineWithTimeMode.CREATED } time={ createdTime } userName={ createdAuthor } - profileImageSrc={ '/img/avatar.png' }/> + profileImageSrc={ `${ assetsBaseUrl }/img/avatar.png` }/> + profileImageSrc={ `${ assetsBaseUrl }/img/avatar.png` }/>
diff --git a/src/components/editor-page/document-bar/document-info/document-info-modal.tsx b/src/components/editor-page/document-bar/document-info/document-info-modal.tsx index 7b0f61bbb..e180aa8c7 100644 --- a/src/components/editor-page/document-bar/document-info/document-info-modal.tsx +++ b/src/components/editor-page/document-bar/document-info/document-info-modal.tsx @@ -12,6 +12,7 @@ import { CommonModal } from '../../../common/modals/common-modal' import { DocumentInfoLine } from './document-info-line' import { DocumentInfoLineWithTimeMode, DocumentInfoTimeLine } from './document-info-time-line' import { UnitalicBoldText } from './unitalic-bold-text' +import { useCustomizeAssetsUrl } from '../../../../hooks/common/use-customize-assets-url' export interface DocumentInfoModalProps { show: boolean, @@ -19,6 +20,9 @@ export interface DocumentInfoModalProps { } export const DocumentInfoModal: React.FC = ({ show, onHide }) => { + const assetsBaseUrl = useCustomizeAssetsUrl() + + // TODO Replace hardcoded mock data with real/mock API requests return ( = ({ show, onHi time={ DateTime.local() .minus({ days: 11 }) } userName={ 'Tilman' } - profileImageSrc={ '/img/avatar.png' }/> + profileImageSrc={ `${ assetsBaseUrl }img/avatar.png` }/> = ({ show, onHi time={ DateTime.local() .minus({ minutes: 3 }) } userName={ 'Philip' } - profileImageSrc={ '/img/avatar.png' }/> + profileImageSrc={ `${ assetsBaseUrl }img/avatar.png` }/> diff --git a/src/components/editor-page/document-bar/share/share-modal.tsx b/src/components/editor-page/document-bar/share/share-modal.tsx index 7bc4c254d..e36e89a49 100644 --- a/src/components/editor-page/document-bar/share/share-modal.tsx +++ b/src/components/editor-page/document-bar/share/share-modal.tsx @@ -38,17 +38,17 @@ export const ShareModal: React.FC = ({ show, onHide }) => { titleI18nKey={ 'editor.modal.shareLink.title' }> - + - + - +