diff --git a/src/components/LatlOutput.js b/src/components/LatlOutput.js index a893de9..6f8a042 100644 --- a/src/components/LatlOutput.js +++ b/src/components/LatlOutput.js @@ -2,6 +2,34 @@ import React from 'react'; import './LatlOutput.scss'; const LatlOutput = ({results, options, dispatch}) => { + const handleClick = e => dispatchFunc => { + e.preventDefault() + return dispatchFunc(); + } + + const dispatchClear = () => { + const clearAction = { + type: 'CLEAR', + value: {} + } + dispatch(clearAction) + } + + const dispatchParse = () => { + const parseAction = { + type: 'PARSE_LATL', + value: {} + } + dispatch(parseAction) + } + + const dispatchRun = () => { + const runAction = { + type: 'RUN', + value: {} + } + dispatch(runAction) + } return (