File tree Expand file tree Collapse file tree 6 files changed +7
-14
lines changed Expand file tree Collapse file tree 6 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ module.exports = (snap, mode) => {
53
53
if ( mode . locked && ! mode . jumping ) return ;
54
54
oldDispatch ( fiber , queue , action ) ;
55
55
setTimeout ( ( ) => {
56
- console . log ( 'Updating the snapshot tree after an action has been dispatched' ) ;
57
56
updateSnapShotTree ( ) ;
58
57
sendSnapshot ( ) ;
59
58
} , 100 ) ;
@@ -113,7 +112,6 @@ module.exports = (snap, mode) => {
113
112
114
113
function updateSnapShotTree ( ) {
115
114
const { current } = fiberRoot ;
116
- console . log ( 'current' , current ) ;
117
115
snap . tree = createTree ( current ) ;
118
116
}
119
117
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ module.exports = (origin, mode) => {
37
37
}
38
38
39
39
return target => {
40
- console . log ( 'im a target' , target ) ;
41
40
// setting mode disables setState from posting messages to window
42
41
mode . jumping = true ;
43
42
jump ( target ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ import PropTypes from 'prop-types';
3
3
4
4
import { changeView , changeSlider } from '../actions/actions' ;
5
5
6
- // BUG FIX:
7
- // changeSlider should also respond to the click event on the div
6
+ // Launch Feature: Figure out changeView vs changeSlider
7
+ // Should we make the btn bigger instead and keep the functionality?
8
+ // div onclick event triggers the changeView method
8
9
9
10
const Action = props => {
10
11
const {
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 ) }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useStoreContext } from '../store';
4
4
import { setTab } from '../actions/actions' ;
5
5
6
6
7
- // BUG FIX : Fix the dropdown styling to make it more distinguishable
7
+ // Launch Feature : Fix the dropdown styling to make it more distinguishable
8
8
9
9
const SwitchAppDropdown = ( ) => {
10
10
const [ { currentTab, tabs } , dispatch ] = useStoreContext ( ) ;
Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ import Action from '../components/Action';
5
5
import { emptySnapshots } from '../actions/actions' ;
6
6
import { useStoreContext } from '../store' ;
7
7
8
- // MVP Feature: Include a dropdown functionality
9
- // to show stateful/functional/Context API differentiation
10
- // May want to add another child component to the container
11
-
8
+ // Launch: render a dropdown filterable list
12
9
function ActionContainer ( ) {
13
10
const [ { tabs, currentTab } , dispatch ] = useStoreContext ( ) ;
14
11
const { snapshots, sliderIndex, viewIndex } = tabs [ currentTab ] ;
You can’t perform that action at this time.
0 commit comments