added basic platform support (mobile, IE)
This commit is contained in:
parent
543cd31421
commit
8b40dcb298
6 changed files with 110 additions and 75 deletions
|
@ -4,6 +4,7 @@ import { faGithub } from "@fortawesome/free-brands-svg-icons"
|
|||
import styled from "styled-components"
|
||||
import ReactTooltip from "react-tooltip"
|
||||
import { Link } from "react-router-dom"
|
||||
import { isMobile } from "react-device-detect"
|
||||
|
||||
import theming from "../theming"
|
||||
import NavbarData from "../data/NavbarData"
|
||||
|
@ -83,9 +84,11 @@ export default class Navbar extends React.Component {
|
|||
>
|
||||
<FontAwesomeIcon icon={faGithub} />
|
||||
</StyledALink>
|
||||
<ReactTooltip id="github" type="dark" effect="solid">
|
||||
<span>View source code</span>
|
||||
</ReactTooltip>
|
||||
{!isMobile && (
|
||||
<ReactTooltip id="github" type="dark" effect="solid">
|
||||
<span>View source code</span>
|
||||
</ReactTooltip>
|
||||
)}
|
||||
|
||||
<SearchBox />
|
||||
<Sidebar />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue