File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ import ReactHtmlParser from 'react-html-parser';
5
5
6
6
import { useStoreContext } from '../store' ;
7
7
8
- // FIX: Update the div copy to something more explanatory
9
-
10
8
function Diff ( { snapshot, show } ) {
11
- const [ mainState ] = useStoreContext ( ) ;
9
+ const [ mainState ] = useStoreContext ( ) ;
12
10
const { currentTab, tabs } = mainState ;
13
11
const { snapshots, viewIndex, sliderIndex } = tabs [ currentTab ] ;
14
12
let previous ;
@@ -26,7 +24,7 @@ function Diff({ snapshot, show }) {
26
24
if ( show ) formatters . html . showUnchanged ( ) ;
27
25
else formatters . html . hideUnchanged ( ) ;
28
26
29
- if ( previous === undefined || delta === undefined ) return < div > states are equal </ div > ;
27
+ if ( previous === undefined || delta === undefined ) return < div > No state change detected. </ div > ;
30
28
return (
31
29
< div >
32
30
{ ReactHtmlParser ( html ) }
You can’t perform that action at this time.
0 commit comments