Skip to content

Commit 45ac7fb

Browse files
committed
able to change tabs / also fixed typo
1 parent 8a19f74 commit 45ac7fb

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/app/components/SwitchApp.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ const SwitchAppDropdown = () => {
2323
className="react-select-container"
2424
classNamePrefix="react-select"
2525
value={currTab}
26-
// onChange={dispatch(setTab(loadApp))}
2726
onChange={(e) => {
2827
dispatch(setTab(parseInt(e.value, 10)));
29-
// console.log(e)
3028
}}
3129
options={tabsArray}
3230
/>

src/app/containers/MainContainer.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ function MainContainer() {
4949
});
5050

5151
if (!npmExists) return <div style={{ color: 'black' }}>please install our npm package in your app</div>;
52-
5352
const { viewIndex, sliderIndex, snapshots } = tabs[currentTab];
5453

5554
// if viewIndex is -1, then use the sliderIndex instead

src/app/reducers/mainReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default (state, action) => produce(state, (draft) => {
134134
break;
135135
}
136136
case types.SET_TAB: {
137-
draft.currentTab = action.paylod;
137+
draft.currentTab = action.payload;
138138
break;
139139
}
140140
default:

0 commit comments

Comments
 (0)