fix: diff viewer

pull/166/head
Boaz Poolman 2024-12-30 15:09:52 +00:00
parent f731691cd1
commit b7d31ddb0c
1 changed files with 7 additions and 7 deletions

View File

@ -11,12 +11,12 @@ import { useIntl } from 'react-intl';
* *
* @see https://github.com/Aeolun/react-diff-viewer-continued/issues/43 * @see https://github.com/Aeolun/react-diff-viewer-continued/issues/43
*/ */
// let ReactDiffViewer; let ReactDiffViewer;
// if (typeof RDV.default !== 'undefined') { if (typeof RDV.default !== 'undefined') {
// ReactDiffViewer = RDV.default; ReactDiffViewer = RDV.default;
// } else { } else {
// ReactDiffViewer = RDV; ReactDiffViewer = RDV;
// } }
import { import {
Modal, Modal,
@ -48,7 +48,7 @@ const ConfigDiff = ({ oldValue, newValue, configName, trigger }) => {
</Grid.Item> </Grid.Item>
</Grid.Root> </Grid.Root>
<Typography variant="pi"> <Typography variant="pi">
<RDV <ReactDiffViewer
oldValue={JSON.stringify(oldValue, null, 2)} oldValue={JSON.stringify(oldValue, null, 2)}
newValue={JSON.stringify(newValue, null, 2)} newValue={JSON.stringify(newValue, null, 2)}
splitView splitView