Fix sidebar topic theme

This commit is contained in:
Thomas Nordquist
2019-04-15 11:43:07 +02:00
parent daac8cf949
commit 0d56ab49ea

View File

@@ -26,7 +26,7 @@ const styles: StyleRulesCallback<string> = (theme: Theme) => ({
class Topic extends React.Component<Props, {}> { class Topic extends React.Component<Props, {}> {
public render() { public render() {
const { node } = this.props const { node, theme } = this.props
if (!node) { if (!node) {
return null return null
} }
@@ -40,7 +40,8 @@ class Topic extends React.Component<Props, {}> {
<Button <Button
onClick={() => this.props.actions.selectTopic(edge!.target)} onClick={() => this.props.actions.selectTopic(edge!.target)}
size="small" size="small"
color="secondary" variant={theme.palette.type === 'light' ? 'contained' : undefined}
color={theme.palette.type === 'light' ? 'primary' : 'secondary'}
className={this.props.classes.button} className={this.props.classes.button}
key={edge!.hash()} key={edge!.hash()}
> >