Commit 43102c58 authored by Saturnino Abril's avatar Saturnino Abril
Browse files

add divider below channelSwitcherSection when autoCloseDMSection is not...

add divider below channelSwitcherSection when autoCloseDMSection is not present, and removed duplicated divider of channelOrganizationSection (#2082)
parent 519b9cef
......@@ -92,9 +92,6 @@ exports[`components/user_settings/sidebar/UserSettingsSidebar should match snaps
<div
className="divider-light"
/>
<div
className="divider-light"
/>
<SettingItemMin
describe={
<FormattedMessage
......@@ -114,6 +111,9 @@ exports[`components/user_settings/sidebar/UserSettingsSidebar should match snaps
}
updateSection={[Function]}
/>
<div
className="divider-dark"
/>
</div>
</div>
`;
......@@ -733,9 +733,8 @@ export default class UserSettingsSidebar extends React.Component {
</h3>
<div className='divider-dark first'/>
{channelOrganizationSection}
{showChannelOrganization && <div className='divider-light'/>}
{channelSwitcherSection}
{showUnusedOption && <div className='divider-light'/>}
{showUnusedOption ? <div className='divider-light'/> : <div className='divider-dark'/>}
{autoCloseDMSection}
</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