chore: try to fail the diff viewer test

pull/166/head
Boaz Poolman 2024-12-30 13:05:04 +00:00
parent 11cde0b638
commit f731691cd1
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">
<ReactDiffViewer <RDV
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