diff --git a/src/common/MainHeader.js b/src/common/MainHeader.js index 30c7a89c..5bf75560 100644 --- a/src/common/MainHeader.js +++ b/src/common/MainHeader.js @@ -1,20 +1,11 @@ import plusIcon from '@fortawesome/fontawesome-free-solid/faPlus'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import React from 'react'; -import { - Collapse, DropdownItem, DropdownMenu, - DropdownToggle, - Nav, - Navbar, - NavbarBrand, - NavbarToggler, - NavItem, - NavLink, - UncontrolledDropdown -} from 'reactstrap'; +import { Link } from 'react-router-dom'; +import { Collapse, Nav, Navbar, NavbarBrand, NavbarToggler, NavItem, NavLink } from 'reactstrap'; +import ServersDropdown from '../servers/ServersDropdown'; import './MainHeader.scss'; import shlinkLogo from './shlink-logo-white.png'; -import { Link } from 'react-router-dom'; export default class MainHeader extends React.Component { constructor(props) { @@ -27,7 +18,7 @@ export default class MainHeader extends React.Component { toggle() { this.setState({ - isOpen: !this.state.isOpen + isOpen: ! this.state.isOpen }); } @@ -45,20 +36,7 @@ export default class MainHeader extends React.Component {   Add server - - - Servers - - - - - Server 1 - - - Server 2 - - - + diff --git a/src/servers/ServersDropdown.js b/src/servers/ServersDropdown.js new file mode 100644 index 00000000..b7b1ea19 --- /dev/null +++ b/src/servers/ServersDropdown.js @@ -0,0 +1,23 @@ +import React from 'react'; +import { DropdownItem, DropdownMenu, DropdownToggle, UncontrolledDropdown } from 'reactstrap'; + +export default class ServersDropdown extends React.Component { + render() { + return ( + + + Servers + + + + + Server 1 foo + + + Server 2 foo + + + + ); + } +}