From e6f0888dc7cbecd0fd186b3c3bd70e557a92413c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Nov 2018 13:02:55 +0300 Subject: Component styling in CSS --- vnext/src/components/Button.css | 10 ++++++++++ vnext/src/components/Button.js | 15 +++------------ vnext/src/components/Chat.css | 9 +++++++++ vnext/src/components/Chat.js | 14 +++----------- vnext/src/components/Thread.js | 2 +- 5 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 vnext/src/components/Button.css create mode 100644 vnext/src/components/Chat.css (limited to 'vnext/src') diff --git a/vnext/src/components/Button.css b/vnext/src/components/Button.css new file mode 100644 index 00000000..85e3f061 --- /dev/null +++ b/vnext/src/components/Button.css @@ -0,0 +1,10 @@ +.Button { + background: #fff; + font-size: 12px; + border: 1px solid #eee; + color: #888; + cursor: pointer; + display: inline-block; + margin: 5px; + padding: 2px 10px; +} \ No newline at end of file diff --git a/vnext/src/components/Button.js b/vnext/src/components/Button.js index 11887d41..4152108b 100644 --- a/vnext/src/components/Button.js +++ b/vnext/src/components/Button.js @@ -1,18 +1,9 @@ import React from 'react'; +import './Button.css'; + export default function Button(props) { return ( - } +  · {this.state.active === msg.rid || } ) } -- cgit v1.2.3