diff --git a/labman/src/app/(auth)/login/page.tsx b/labman/src/app/(auth)/login/page.tsx index e0d1443..1a9e0b3 100644 --- a/labman/src/app/(auth)/login/page.tsx +++ b/labman/src/app/(auth)/login/page.tsx @@ -45,7 +45,11 @@ export default function Home() { +
{version}-{env}
+ All icons by Icons8 + + > diff --git a/labman/src/app/(main)/globals.css b/labman/src/app/(main)/globals.css index 6440177..fe4a317 100644 --- a/labman/src/app/(main)/globals.css +++ b/labman/src/app/(main)/globals.css @@ -109,4 +109,12 @@ input:invalid { .card-attributes-value { @apply text-2xl text-gray-300 font-bold +} + +.rounded-button { + @apply rounded-full hover:cursor-pointer +} + +.rounded-button:hover { + @apply brightness-90 transition-all duration-500 scale-105 ease-in-out } \ No newline at end of file diff --git a/labman/src/components/core/Ellipsis.tsx b/labman/src/components/core/Ellipsis.tsx index b2a4b8f..cecf108 100644 --- a/labman/src/components/core/Ellipsis.tsx +++ b/labman/src/components/core/Ellipsis.tsx @@ -1,16 +1,17 @@ import {useState} from "react"; import {Equipment} from "@/types/inventory"; +import {useSideView} from "@/app/sideViewContext"; interface EllipsisProps { equipment: Equipment; setSelectedEquipment: (equipment: Equipment | null) => void; - setSideView: (view: string) => void; deleteEquipment: (name: string) => void; } -export default function Ellipsis({equipment, setSelectedEquipment, setSideView, deleteEquipment}: EllipsisProps) { +export default function Ellipsis({equipment, setSelectedEquipment, deleteEquipment}: EllipsisProps) { const [isOpen, setIsOpen] = useState(false); const toggle = () => setIsOpen(!isOpen); + const {setSideView} = useSideView(); // TODO: Find a way to ensure that only one dropdown is open at a time diff --git a/labman/src/components/core/SideView/SideView.tsx b/labman/src/components/core/SideView/SideView.tsx index a45e17f..8957486 100644 --- a/labman/src/components/core/SideView/SideView.tsx +++ b/labman/src/components/core/SideView/SideView.tsx @@ -41,7 +41,7 @@ export default function SideView( { children, title, equipmentData, itemList} : {/* Right side of panel */} -