diff --git a/src/app/ui/Dropdown.tsx b/src/app/ui/Dropdown.tsx index a38f86a..4ad91c7 100644 --- a/src/app/ui/Dropdown.tsx +++ b/src/app/ui/Dropdown.tsx @@ -1,26 +1,40 @@ // 'use client'; +import React from 'react'; import { BsFillCaretDownFill } from 'react-icons/bs'; interface IDropdown { value: string; items: string[]; - action: () => void; + action: (item: string) => void; } -export const Dropdown = ({ value, items, action }: IDropdown) => ( -
-
- {value} +export const Dropdown = ({ value, items, action }: IDropdown) => { + const handleClick = (item: string) => { + action(item); + + const activeEl = document.activeElement as HTMLElement; + activeEl && activeEl.blur(); + }; + + return ( +
+
+ {value} +
+
-
    - {items.map((item) => ( -
  • - {item} -
  • - ))} -
-
-); + ); +}; diff --git a/src/app/ui/Nav.tsx b/src/app/ui/Nav.tsx index ee4756f..851325c 100644 --- a/src/app/ui/Nav.tsx +++ b/src/app/ui/Nav.tsx @@ -1,16 +1,54 @@ +import Link from 'next/link'; + export const Nav = () => ( -
-
-
- Slick Telemetry -
-
-
    +
    +
    + + Slick Telemetry + +
    +
    + +
    +
    +
    +
    + + + +
    +
    -
    -
    -
    - - - -
    - -
    -
    -
    -

    - 53 days until Winter Testing -

    -
    +
    +
    +

    + 53 days until Winter Testing +

    diff --git a/src/app/ui/Tabs.tsx b/src/app/ui/Tabs.tsx index 0463850..fa06c91 100644 --- a/src/app/ui/Tabs.tsx +++ b/src/app/ui/Tabs.tsx @@ -37,11 +37,13 @@ export const Tabs = ({ headers, containers }: ITabs) => { )); return ( -
    -
    - {TabButtons} -
    +
    {TabContainers} +
    +
    + {TabButtons} +
    +
    ); };