diff --git a/interface/index.tsx b/interface/index.tsx index af5a59747..f2fe9bf1b 100644 --- a/interface/index.tsx +++ b/interface/index.tsx @@ -16,6 +16,7 @@ import { useDebugState, useLoadBackendFeatureFlags } from '@sd/client'; +import { TooltipProvider } from '@sd/ui'; import { P2P } from './app/p2p'; import { WithPrismTheme } from './components/TextViewer/prism'; @@ -59,14 +60,16 @@ export const SpacedriveInterface = (props: { router: RouterProviderProps['router return ( - - - - - - - - + + + + + + + + + + ); }; diff --git a/packages/ui/src/Tooltip.tsx b/packages/ui/src/Tooltip.tsx index c4a331176..c2329df7c 100644 --- a/packages/ui/src/Tooltip.tsx +++ b/packages/ui/src/Tooltip.tsx @@ -11,7 +11,6 @@ export interface TooltipProps extends PropsWithChildren { tooltipClassName?: string; labelClassName?: string; asChild?: boolean; - hoverable?: boolean; keybinds?: Array; } @@ -30,45 +29,45 @@ const separateKeybinds = (keybinds: TooltipProps['keybinds']): TooltipProps['key return arr; }; -export const Tooltip = ({ position = 'bottom', hoverable = true, ...props }: TooltipProps) => { +export const Tooltip = ({ position = 'bottom', ...props }: TooltipProps) => { return ( - - - - {props.asChild ? ( - props.children - ) : ( - {props.children} - )} - - - {props.label && ( - - {props.label} - {props.keybinds && ( - - {separateKeybinds(props.keybinds)?.map((k, _) => ( - - {k} - - ))} - - )} - - )} - - - + + + {props.asChild ? ( + props.children + ) : ( + {props.children} + )} + + + {props.label && ( + + {props.label} + {props.keybinds && ( + + {separateKeybinds(props.keybinds)?.map((k, _) => ( + + {k} + + ))} + + )} + + )} + + ); }; + +export const TooltipProvider = TooltipPrimitive.Provider;
{props.label}
{k}