Skip to content

Commit 9bb9b81

Browse files
committed
Convert ChannelMenu to CSS modules
1 parent 47d061e commit 9bb9b81

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

ui/frontend/ChannelMenu.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.description {
2+
margin: 0;
3+
}

ui/frontend/ChannelMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import * as selectors from './selectors';
99
import State from './state';
1010
import { Channel } from './types';
1111

12+
import styles from './ChannelMenu.module.css';
13+
1214
interface ChannelMenuProps {
1315
close: () => void;
1416
}
@@ -62,7 +64,7 @@ const ChannelMenu: React.SFC<ChannelMenuProps> = props => {
6264
};
6365

6466
const Desc: React.SFC<{}> = ({ children }) => (
65-
<p className="channel-menu__description">{children}</p>
67+
<p className={styles.description}>{children}</p>
6668
);
6769

6870
export default ChannelMenu;

ui/frontend/index.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -581,12 +581,6 @@ $header-transition: 0.2s ease-in-out;
581581
}
582582
}
583583

584-
.channel-menu {
585-
&__description {
586-
margin: 0;
587-
}
588-
}
589-
590584
.config-element {
591585
display: flex;
592586
align-items: center;

0 commit comments

Comments
 (0)