mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 06:05:15 +00:00
26 lines
533 B
JavaScript
26 lines
533 B
JavaScript
import React from 'react';
|
|
|
|
import SettingsIcon from '../icons/SettingsIcon';
|
|
import UIActions from '../../actions/UIActions';
|
|
|
|
class SettingsButton extends React.Component {
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
handleSettingsButtonClick() {
|
|
UIActions.displayModal({id: 'settings'});
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<a className="sidebar__icon-button sidebar__icon-button--settings"
|
|
onClick={this.handleSettingsButtonClick}>
|
|
Settings <SettingsIcon />
|
|
</a>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default SettingsButton;
|