fix: diff viewer
parent
f731691cd1
commit
b7d31ddb0c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue