Skip to content

Commit ea9a2f9

Browse files
committed
♻️ make li into styled component
1 parent 10ccc19 commit ea9a2f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

client/modules/IDE/pages/MobileIDEView.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ const Expander = styled.div`
4242
height: ${props => (props.expanded ? remSize(160) : remSize(27))};
4343
`;
4444

45+
const NavItem = styled.li`
46+
position: relative;
47+
`;
48+
4549
const headerNavOptions = [
4650
{ icon: PreferencesIcon, title: 'Preferences', href: '/mobile/preferences', },
4751
{ icon: PreferencesIcon, title: 'Examples', href: '/mobile/examples' },
@@ -72,14 +76,14 @@ const MobileIDEView = (props) => {
7276
<IconButton to="/mobile" icon={ExitIcon} aria-label="Return to original editor" />
7377
}
7478
>
75-
<li style={{ position: 'relative' }}>
79+
<NavItem>
7680
<IconButton
7781
onClick={triggerNavDropdown}
7882
icon={MoreIcon}
7983
aria-label="Options"
8084
/>
8185
<NavDropDown />
82-
</li>
86+
</NavItem>
8387
<li>
8488
<IconButton to="/mobile/preview" onClick={() => { startSketch(); }} icon={PlayIcon} aria-label="Run sketch" />
8589
</li>

0 commit comments

Comments
 (0)