|
|
@ -72,11 +72,6 @@ class Themes extends React.PureComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
selectHighlight = key => () =>
|
|
|
|
|
|
|
|
this.setState(({ selectedHighlight }) => ({
|
|
|
|
|
|
|
|
selectedHighlight: selectedHighlight === key ? null : key
|
|
|
|
|
|
|
|
}))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateHighlights = updates =>
|
|
|
|
updateHighlights = updates =>
|
|
|
|
this.setState(({ highlights }) => ({
|
|
|
|
this.setState(({ highlights }) => ({
|
|
|
|
highlights: {
|
|
|
|
highlights: {
|
|
|
@ -94,11 +89,10 @@ class Themes extends React.PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { themes, theme, isVisible, toggleVisibility } = this.props
|
|
|
|
const { themes, theme, isVisible, toggleVisibility } = this.props
|
|
|
|
const { input } = this.state
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const highlights = { ...theme.highlights, ...this.state.highlights }
|
|
|
|
const highlights = { ...theme.highlights, ...this.state.highlights }
|
|
|
|
|
|
|
|
|
|
|
|
const dropdownValue = isVisible ? { name: input } : { id: theme.id, name: theme.name }
|
|
|
|
const dropdownValue = isVisible ? { name: '' } : { id: theme.id, name: theme.name }
|
|
|
|
|
|
|
|
|
|
|
|
const dropdownList = [
|
|
|
|
const dropdownList = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|