summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
48039ab)
By doing the intuitive thing and clicking it again.
}
onClick={(event) => {
event.stopPropagation();
}
onClick={(event) => {
event.stopPropagation();
- this.setState({
- starred: set
- });
+ if (this.state.starred === set) {
+ this.setState({
+ starred: null
+ });
+ } else {
+ this.setState({
+ starred: set
+ });
+ }
}}
>
{this.state.starred === set ?
}}
>
{this.state.starred === set ?