From 06294afdd3894ea4a8582288018e14950485f294 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Thu, 3 Jun 2021 17:25:21 +0300 Subject: [PATCH] fix(client): remove prism from app chunk (#42230) * remove-prisim-from-app-chunk * Update client/src/components/profile/components/TimeLine.js Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> --- client/src/components/profile/components/TimeLine.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/profile/components/TimeLine.js b/client/src/components/profile/components/TimeLine.js index 111624c20a..8aa216bb28 100644 --- a/client/src/components/profile/components/TimeLine.js +++ b/client/src/components/profile/components/TimeLine.js @@ -14,7 +14,8 @@ import { withTranslation } from 'react-i18next'; import './timeline.css'; import TimelinePagination from './TimelinePagination'; import { FullWidthRow, Link } from '../../helpers'; -import SolutionViewer from '../../SolutionViewer/SolutionViewer'; +import Loadable from '@loadable/component'; + import { getCertIds, getPathFromID, @@ -27,6 +28,10 @@ import CertificationIcon from '../../../assets/icons/CertificationIcon'; import { langCodes } from '../../../../../config/i18n/all-langs'; import envData from '../../../../../config/env.json'; +const SolutionViewer = Loadable(() => + import('../../SolutionViewer/SolutionViewer') +); + const { clientLocale } = envData; const localeCode = langCodes[clientLocale];