feat(content-manager): try to change Prism import

This commit is contained in:
Simone Taeggi 2024-12-02 11:23:50 +01:00
parent 620998f043
commit d91631fec0

View File

@ -1,9 +1,10 @@
import * as React from 'react'; import * as React from 'react';
// Import the PrismJS theme to highlight the code
import 'prismjs/themes/prism.css';
import { Box, SingleSelect, SingleSelectOption } from '@strapi/design-system'; import { Box, SingleSelect, SingleSelectOption } from '@strapi/design-system';
import { CodeBlock as CodeBlockIcon } from '@strapi/icons'; import { CodeBlock as CodeBlockIcon } from '@strapi/icons';
import Prism from 'prismjs';
// Import the PrismJS theme to highlight the code
import 'prismjs/themes/prism-okaidia.css';
import { useIntl } from 'react-intl'; import { useIntl } from 'react-intl';
import { Editor, Transforms } from 'slate'; import { Editor, Transforms } from 'slate';
import { useSelected, type RenderElementProps, useFocused, ReactEditor } from 'slate-react'; import { useSelected, type RenderElementProps, useFocused, ReactEditor } from 'slate-react';