diff --git a/packages/grafnode-components/src/components/Navbar/StyledWrapper.js b/packages/grafnode-components/src/components/Navbar/StyledWrapper.js index 195b0632f..4a4d12302 100644 --- a/packages/grafnode-components/src/components/Navbar/StyledWrapper.js +++ b/packages/grafnode-components/src/components/Navbar/StyledWrapper.js @@ -1,6 +1,20 @@ import styled from 'styled-components'; const StyledWrapper = styled.div` + .collection-dropdown { + color: rgb(110 110 110); + + &:hover { + color: inherit; + } + + .tippy-box { + top: -0.5rem; + position: relative; + user-select: none; + } + } + `; export default StyledWrapper; \ No newline at end of file diff --git a/packages/grafnode-components/src/components/Navbar/index.js b/packages/grafnode-components/src/components/Navbar/index.js index 59415f8de..635f2236c 100644 --- a/packages/grafnode-components/src/components/Navbar/index.js +++ b/packages/grafnode-components/src/components/Navbar/index.js @@ -1,15 +1,49 @@ -import React from 'react'; -import { IconLayoutGrid } from '@tabler/icons'; +import React, { useState, forwardRef, useRef } from 'react'; +import Dropdown from '../Dropdown'; import { faCaretDown } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { IconBox, IconSearch, IconDots } from '@tabler/icons'; import StyledWrapper from './StyledWrapper'; const Navbar = () => { + const [modalOpen, setModalOpen] = useState(false); + + const menuDropdownTippyRef = useRef(); + const onMenuDropdownCreate = (ref) => menuDropdownTippyRef.current = ref; + const MenuIcon = forwardRef((props, ref) => { + return ( +