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>
This commit is contained in:
Ahmad Abdolsaheb
2021-06-03 17:25:21 +03:00
committed by GitHub
parent b2539f330d
commit 06294afdd3

View File

@@ -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];