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