Skip to content

Commit

Permalink
type(example): fix nextjs example type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 4, 2023
1 parent 40655ff commit 2a916c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/nextjs/src/app/merg/_editor/Com.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import { Fragment, useRef, useState } from 'react';
import { useRef, useState } from 'react';
import CodeMirrorMerge, { CodeMirrorMergeProps } from 'react-codemirror-merge';
import { langs } from '@uiw/codemirror-extensions-langs';
import { originalCode, modifiedCode } from './code';
Expand All @@ -26,7 +26,7 @@ export const MergeExample = () => {
setOriginalValue(code);
};
return (
<Fragment>
<div>
<button onClick={click}>Change Original Value {random.current}</button>
<CodeMirrorMerge
orientation={orientation}
Expand Down Expand Up @@ -100,6 +100,6 @@ export const MergeExample = () => {
onChange={(evn) => setCollapseUnchanged(evn.target.checked ? {} : undefined)}
/>
</label>
</Fragment>
</div>
);
};

0 comments on commit 2a916c0

Please sign in to comment.