Skip to content

Commit

Permalink
Remove redundant helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JadeMaveric committed Mar 14, 2021
1 parent f0e9e83 commit df7e6d7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pages/poll/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Create = (): JSX.Element => {
}
}

const [tourHelpers, setTourHelpers] = useState<StoreHelpers | undefined>(undefined)
const tourSteps: Step[] = [
{
disableBeacon: true,
Expand Down Expand Up @@ -172,10 +171,6 @@ const Create = (): JSX.Element => {
}
};

const getTourHelpers = (helpers: StoreHelpers) => {
setTourHelpers(helpers);
}

const handleStartTour = (event: React.MouseEvent<SVGElement, MouseEvent>) => {
setTourRun(true)
}
Expand All @@ -195,7 +190,6 @@ const Create = (): JSX.Element => {
<Layout>
<Joyride
callback={handleJoyrideCallback}
getHelpers={getTourHelpers}
steps={tourSteps}
run={tourRun}
continuous={true}
Expand Down

0 comments on commit df7e6d7

Please sign in to comment.