diff --git a/src/Components/Control-Template/Control-Template.component.jsx b/src/Components/Control-Template/Control-Template.component.jsx index 7b18883..96a538f 100644 --- a/src/Components/Control-Template/Control-Template.component.jsx +++ b/src/Components/Control-Template/Control-Template.component.jsx @@ -2,10 +2,10 @@ import React from 'react'; import './Control-Template.styles.css'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; -import { selectLevel, selectSpellInput } from '../../redux/control/control.selectors'; +import { selectLevel, selectSpellInput, selectErrorMessage } from '../../redux/control/control.selectors'; import { HandleSpellInputChange, OnSpellSubmit } from '../../redux/control/control.actions'; -const ControlTemplate = ({ submitSpell, spell_input, hints, headerText, level, handleChange }) => { +const ControlTemplate = ({ submitSpell, spell_input, hints, headerText, level, handleChange, error_message }) => { //they are the only unique things to each Control //level comes from reducer now //the caveat of using controlTemplate is that ,now , we have to clear our spell_input every time a user submit the spell correctly //to make classnames dynamic to the level value. @@ -22,18 +22,24 @@ const ControlTemplate = ({ submitSpell, spell_input, hints, headerText, level, h {hints}

Don't forget to finish your spell with semicolon ;

-

#fire_spell {

-

display: flex;

-