From 99b02e32bf3f2c34f48994f178be8193813b1be4 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 11 Aug 2020 22:50:40 +0200 Subject: [PATCH] update imports --- components/contact.js | 4 ++-- components/reason.js | 4 ++-- components/required.js | 2 ++ components/wizard.js | 5 +---- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/components/contact.js b/components/contact.js index 3784b39..93821eb 100644 --- a/components/contact.js +++ b/components/contact.js @@ -1,5 +1,5 @@ -import { useContext } from 'react' -import { WizardContext, ACTIONS } from '../context/wizardStore' +import React, { useContext } from 'react' +import { WizardContext } from '../context/wizardStore' import Required from './required' import Form from 'react-bootstrap/Form' diff --git a/components/reason.js b/components/reason.js index 1308bed..88c873e 100644 --- a/components/reason.js +++ b/components/reason.js @@ -1,5 +1,5 @@ -import { useContext } from 'react' -import { WizardContext, ACTIONS } from '../context/wizardStore' +import React, { useContext } from 'react' +import { WizardContext } from '../context/wizardStore' import Required from './required' import Form from 'react-bootstrap/Form' diff --git a/components/required.js b/components/required.js index 4e5e120..6274306 100644 --- a/components/required.js +++ b/components/required.js @@ -1,2 +1,4 @@ +import React from 'react' + const Required = () => * export default Required diff --git a/components/wizard.js b/components/wizard.js index 52e16e4..4b11236 100644 --- a/components/wizard.js +++ b/components/wizard.js @@ -1,4 +1,4 @@ -import { useContext } from 'react' +import React, { useContext } from 'react' import Button from 'react-bootstrap/Button' import Form from 'react-bootstrap/Form' @@ -28,9 +28,6 @@ function WizardInternal() { ) } - const onChange = (payload) => - dispatch({ action: ACTIONS.SET_FORM_DATA, payload }) - return (
{