Skip to content

Commit

Permalink
fix: loadable
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Sep 18, 2023
1 parent 785c164 commit ab0a639
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ReleaseLog/ReleaseLog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import React, { useState, useEffect } from 'react';

import { Container } from 'design-react-kit/dist/design-react-kit';
import { Helmet } from '@plone/volto/helpers';
import { injectLazyLibs } from '@plone/volto/helpers/Loadable/Loadable';
import { marked as Markdown } from 'marked';

import './ReleaseLog.css';

const ReleaseLog = ({ marked }) => {
const ReleaseLog = () => {
const ReleaseFile = require('design-comuni-plone-theme/../RELEASE.md');
const Markdown = marked.marked;

const [releaseFileContent, setReleaseFileContent] = useState('');

useEffect(() => {
Expand All @@ -35,4 +35,4 @@ const ReleaseLog = ({ marked }) => {
);
};

export default injectLazyLibs(['marked'])(ReleaseLog);
export default ReleaseLog;

0 comments on commit ab0a639

Please sign in to comment.