summaryrefslogtreecommitdiffstats
path: root/web/react/components/more_channels.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-15 14:05:05 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-15 14:05:05 -0400
commit3745204097b2f03cd5f3fc1292ea62fb4f931232 (patch)
tree3380ee0fd2341dac1814aed8cf851bfe274a21a7 /web/react/components/more_channels.jsx
parentbf7ae0711743926cfbb031675cc3320d7a942465 (diff)
parent7d79a916dd58d51989d35721060cfca6dce1baca (diff)
downloadchat-3745204097b2f03cd5f3fc1292ea62fb4f931232.tar.gz
chat-3745204097b2f03cd5f3fc1292ea62fb4f931232.tar.bz2
chat-3745204097b2f03cd5f3fc1292ea62fb4f931232.zip
Merge pull request #2429 from asaadmahmoodspin/ui-improvements
PLT-963 - Improving scss structure
Diffstat (limited to 'web/react/components/more_channels.jsx')
-rw-r--r--web/react/components/more_channels.jsx31
1 files changed, 15 insertions, 16 deletions
diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx
index 3309ef52e..2ba435449 100644
--- a/web/react/components/more_channels.jsx
+++ b/web/react/components/more_channels.jsx
@@ -95,17 +95,18 @@ export default class MoreChannels extends React.Component {
}
return (
- <tr key={channel.id}>
- <td className='more-row'>
- <div className='more-details'>
- <p className='more-name'>{channel.display_name}</p>
- <p className='more-description'>{channel.purpose}</p>
- </div>
- <div className='more-actions'>
- {joinButton}
- </div>
- </td>
- </tr>
+ <div
+ className='more-modal__row'
+ key={channel.id}
+ >
+ <div className='more-modal__details'>
+ <p className='more-modal__name'>{channel.display_name}</p>
+ <p className='more-modal__description'>{channel.purpose}</p>
+ </div>
+ <div className='more-modal__actions'>
+ {joinButton}
+ </div>
+ </div>
);
}
render() {
@@ -127,11 +128,9 @@ export default class MoreChannels extends React.Component {
moreChannels = <LoadingScreen/>;
} else if (channels.length) {
moreChannels = (
- <table className='more-table table'>
- <tbody>
- {channels.map(this.createChannelRow)}
- </tbody>
- </table>
+ <div className='more-modal__list'>
+ {channels.map(this.createChannelRow)}
+ </div>
);
} else {
moreChannels = (