fix prop type for sound selector
This commit is contained in:
parent
ab1a46ab0e
commit
d62a27c2cc
@ -128,7 +128,7 @@ BlocklyWindow.propTypes = {
|
|||||||
onChangeWorkspace: PropTypes.func.isRequired,
|
onChangeWorkspace: PropTypes.func.isRequired,
|
||||||
clearStats: PropTypes.func.isRequired,
|
clearStats: PropTypes.func.isRequired,
|
||||||
renderer: PropTypes.string.isRequired,
|
renderer: PropTypes.string.isRequired,
|
||||||
sounds: PropTypes.string.isRequired,
|
sounds: PropTypes.bool.isRequired,
|
||||||
language: PropTypes.string.isRequired,
|
language: PropTypes.string.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ const Sidebar = () => {
|
|||||||
style={{ padding: "1rem", margin: "1rem" }}
|
style={{ padding: "1rem", margin: "1rem" }}
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
key={i}
|
||||||
onClick={() => loadCode(object.code)}
|
onClick={() => loadCode(object.code)}
|
||||||
>
|
>
|
||||||
{object.name}
|
{object.name}
|
||||||
|
@ -52,7 +52,7 @@ class SoundsSelector extends Component {
|
|||||||
SoundsSelector.propTypes = {
|
SoundsSelector.propTypes = {
|
||||||
setSounds: PropTypes.func.isRequired,
|
setSounds: PropTypes.func.isRequired,
|
||||||
language: PropTypes.string.isRequired,
|
language: PropTypes.string.isRequired,
|
||||||
sounds: PropTypes.string.isRequired,
|
sounds: PropTypes.bool.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapStateToProps = (state) => ({
|
const mapStateToProps = (state) => ({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user