chore: try to fail the diff viewer test
parent
11cde0b638
commit
f731691cd1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue