remove unnecessary div wraper

This commit is contained in:
btzr-io 2020-05-07 20:53:00 -05:00 committed by Sean Yesmunt
parent a8f6185f12
commit 6c9538e4f5

View file

@ -38,28 +38,26 @@ function ChannelSelector(props: Props) {
}
return (
<div>
<Menu>
<MenuButton className="">
<ChannelListItem uri={selectedChannelUrl} isSelected />
</MenuButton>
<MenuList className="menu__list channel__list">
{channels &&
channels.map(channel => (
<MenuItem
key={channel.canonical_url}
onSelect={() => {
if (selectedChannelUrl !== channel.canonical_url) {
onChannelSelect(channel.canonical_url);
}
}}
>
<ChannelListItem uri={channel.canonical_url} />
</MenuItem>
))}
</MenuList>
</Menu>
</div>
<Menu>
<MenuButton className="">
<ChannelListItem uri={selectedChannelUrl} isSelected />
</MenuButton>
<MenuList className="menu__list channel__list">
{channels &&
channels.map(channel => (
<MenuItem
key={channel.canonical_url}
onSelect={() => {
if (selectedChannelUrl !== channel.canonical_url) {
onChannelSelect(channel.canonical_url);
}
}}
>
<ChannelListItem uri={channel.canonical_url} />
</MenuItem>
))}
</MenuList>
</Menu>
);
}