Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
themeStory.add('light', _ => (
))
function handleClick(evt) {
onSelect(evt, name)
}
return (
<title>{name}</title>
)
}
Swatch.propTypes = {
name: PropTypes.oneOf(Object.values(Theme.names)).isRequired,
onSelect: PropTypes.func.isRequired
}
const Container = props => <button>
const Preview = props => <div>
const Info = props => <div>
const Title = props => <h2>
Title.propTypes = {
children: PropTypes.string.isRequired
}
</h2></div></div></button>