diff --git a/src/components/hardware/HardwareModal.tsx b/src/components/hardware/HardwareModal.tsx index caeaa591..9c070272 100644 --- a/src/components/hardware/HardwareModal.tsx +++ b/src/components/hardware/HardwareModal.tsx @@ -8,7 +8,7 @@ import { VictoryTheme, } from 'victory'; -import { Tab } from '@headlessui/react'; +import { Tab, Transition } from '@headlessui/react'; import type { IDevice } from '@site/src/data/device'; import { Modal } from '../Modal'; @@ -31,9 +31,9 @@ export const HardwareModal = ({ return (
-
+
@@ -82,85 +82,103 @@ export const HardwareModal = ({ >
- {hideDetails ? ( -
- ) : ( -
-
- -
-
- - - - `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ - selected ? 'bg-secondary shadow-md' : '' - }` - } - > - Info - - - `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ - selected ? 'bg-secondary shadow-md' : '' - }` - } - > - Power - - - `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ - selected ? 'bg-secondary shadow-md' : '' - }` - } - > - Pinout - - - - Content 1 - - + + <> +
+ +
+
+ + + + `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ + selected ? 'bg-secondary shadow-md' : '' + }` + } > - ''} - /> - - {[5, 4, 3, 2, 1].map((val, i) => { - return ( - val * (1 - Math.cos(d.x))} - /> - ); - })} - - - Content 3 - - -
-
- )} + Info + + + `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ + selected ? 'bg-secondary shadow-md' : '' + }` + } + > + Power + + + `w-1/3 truncate rounded-md px-3 py-2 text-sm font-medium hover:bg-tertiary ${ + selected ? 'bg-secondary shadow-md' : '' + }` + } + > + Pinout + + + + Content 1 + + + ''} + /> + + {[5, 4, 3, 2, 1].map((val, i) => { + return ( + val * (1 - Math.cos(d.x))} + /> + ); + })} + + + Content 3 + + +
+ + +