Commit 4c7f04ad authored by Asaad Mahmood's avatar Asaad Mahmood Committed by cpanato

MM-13474 - Updating new channel modal (#2219)

* MM-13474 - Updating new channel modal

* Updating tests
parent d456fac9
...@@ -86,24 +86,28 @@ exports[`components/NewChannelModal should match snapshot, display only private ...@@ -86,24 +86,28 @@ exports[`components/NewChannelModal should match snapshot, display only private
className="col-sm-9" className="col-sm-9"
> >
<div <div
className="type-container" className="type-container multi-select__radio"
> >
<div <div
className="flex-parent" className="radio"
> >
<LockIcon <div
className="icon icon__lock icon--body type-icon" className="flex-parent"
/> >
<FormattedMessage <LockIcon
defaultMessage="Private" className="icon icon__lock icon--body type-icon"
id="channel_modal.privateName" />
values={Object {}} <FormattedMessage
/> defaultMessage="Private"
<FormattedMessage id="channel_modal.privateName"
defaultMessage=" - Only invited members can join this channel." values={Object {}}
id="channel_modal.privateHint" />
values={Object {}} <FormattedMessage
/> defaultMessage=" - Only invited members can join this channel."
id="channel_modal.privateHint"
values={Object {}}
/>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -374,24 +378,28 @@ exports[`components/NewChannelModal should match snapshot, display only public c ...@@ -374,24 +378,28 @@ exports[`components/NewChannelModal should match snapshot, display only public c
className="col-sm-9" className="col-sm-9"
> >
<div <div
className="type-container" className="type-container multi-select__radio"
> >
<div <div
className="flex-parent" className="radio"
> >
<GlobeIcon <div
className="icon icon__globe icon--body type-icon" className="flex-parent"
/> >
<FormattedMessage <GlobeIcon
defaultMessage="Public" className="icon icon__globe icon--body type-icon"
id="channel_modal.publicName" />
values={Object {}} <FormattedMessage
/> defaultMessage="Public"
<FormattedMessage id="channel_modal.publicName"
defaultMessage=" - Anyone can join this channel." values={Object {}}
id="channel_modal.publicHint" />
values={Object {}} <FormattedMessage
/> defaultMessage=" - Anyone can join this channel."
id="channel_modal.publicHint"
values={Object {}}
/>
</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -258,9 +258,11 @@ export default class NewChannelModal extends React.PureComponent { ...@@ -258,9 +258,11 @@ export default class NewChannelModal extends React.PureComponent {
); );
} else { } else {
typeOptions = ( typeOptions = (
<div className='type-container'> <div className='type-container multi-select__radio'>
{canCreatePublicChannel ? publicChannelDesc : null} <div className='radio'>
{canCreatePrivateChannel ? privateChannelDesc : null} {canCreatePublicChannel ? publicChannelDesc : null}
{canCreatePrivateChannel ? privateChannelDesc : null}
</div>
</div> </div>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment