diff options
author | Vitaly Takmazov | 2018-06-22 12:02:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | c24420eee001707530bab841d998cc076a459708 (patch) | |
tree | 317fd7cbe215e7fac61963ee3198e0cffa29ba17 /vnext/src/components/Thread.js | |
parent | 141599103c5b46921a18c33d72ee75518f6705b4 (diff) |
Button component
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r-- | vnext/src/components/Thread.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index 7464ca7f..5ff91346 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -8,6 +8,7 @@ import MessageInput from './MessageInput'; import Spinner from './Spinner'; import Avatar from './Avatar'; import Icon from './Icon'; +import Button from './Button'; import { format } from '../utils/embed'; @@ -149,12 +150,12 @@ export default class Thread extends React.Component { { this.props.visitor.uid > 0 ? ( <React.Fragment> - {this.state.active === msg.rid || <button onClick={this.setActive.bind(this, msg)} className="badge"><Icon name="ei-envelope" size="s" />Reply</button>} + {this.state.active === msg.rid || <Button onClick={this.setActive.bind(this, msg)}><Icon name="ei-envelope" size="s" />Reply</Button>} {this.state.active === msg.rid && <MessageInput data={msg} onSend={this.postComment} />} </React.Fragment> ) : ( <React.Fragment> - <span> · </span>{this.state.active === msg.rid || <button className="a-login">Reply</button>} + <span> · </span>{this.state.active === msg.rid || <Button className="a-login">Reply</Button>} </React.Fragment> ) } |