Skip to content

Commit

Permalink
removes errant console.logs from EuiTour (#3513)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos authored May 26, 2020
1 parent 2fcad84 commit 454c734
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src-docs/src/views/tour/fullscreen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment, useEffect, useState } from 'react';
import React, { Fragment, useState } from 'react';

import { GuideFullScreen } from '../../services';

Expand Down Expand Up @@ -67,10 +67,6 @@ export default () => {
reducerState,
] = useEuiTour(demoTourSteps, tourConfig);

useEffect(() => {
console.log('Update', reducerState);
}, [reducerState]);

const onSelectColor = color => {
setColor(color);
if (reducerState.currentTourStep === 2) {
Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/tour/managed.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default () => {
<EuiTour steps={demoTourSteps} initialState={state}>
{([euiTourStepOne, euiTourStepTwo], actions, reducerState) => {
useEffect(() => {
console.log('Updating localStorage', STORAGE_KEY, reducerState);
localStorage.setItem(STORAGE_KEY, JSON.stringify(reducerState));
}, [reducerState]);

Expand Down
1 change: 0 additions & 1 deletion src-docs/src/views/tour/managed_hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default () => {
);

useEffect(() => {
console.log('Updating localStorage', STORAGE_KEY, reducerState);
localStorage.setItem(STORAGE_KEY, JSON.stringify(reducerState));
}, [reducerState]);

Expand Down

0 comments on commit 454c734

Please sign in to comment.