From 53ea63b35fcfefc7db040e0e4bf46f7e3626c296 Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Sat, 7 Nov 2020 07:07:20 +0500 Subject: [PATCH] Removed development console.log's and added Dockerfile --- Dockerfile | 6 ++++++ src/components/QuestionsForm/hooks.ts | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..702e81f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM node:14.4.0-alpine3.10 +USER root +WORKDIR /frontend +COPY . /frontend +RUN yarn +RUN yarn build \ No newline at end of file diff --git a/src/components/QuestionsForm/hooks.ts b/src/components/QuestionsForm/hooks.ts index 556701b..d787976 100644 --- a/src/components/QuestionsForm/hooks.ts +++ b/src/components/QuestionsForm/hooks.ts @@ -24,7 +24,6 @@ export const useForm = () => { const setInitialState = useCallback( (questions: QuestionT[]) => { const state = getInitialState(questions) - console.log('Setting state') setAnswers(state) }, [setAnswers]