diff --git a/site/gatsby-site/src/components/sidebar/treeNode.js b/site/gatsby-site/src/components/sidebar/treeNode.js index d6a3904e0f..f64a1caae2 100644 --- a/site/gatsby-site/src/components/sidebar/treeNode.js +++ b/site/gatsby-site/src/components/sidebar/treeNode.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Trans } from 'react-i18next'; +import { Trans, useTranslation } from 'react-i18next'; import { ChevronDown, ChevronRight } from 'react-feather'; import Link from '../ui/Link'; // Assuming you have this component for internal links import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; @@ -19,6 +19,7 @@ import { faTable, faUser, } from '@fortawesome/free-solid-svg-icons'; +import { Tooltip } from 'flowbite-react'; const TreeNode = ({ item, @@ -50,6 +51,8 @@ const TreeNode = ({ } }; + const { t } = useTranslation(); + return (
  • - {icon && (isCollapsed ? {icon} : <>{icon})} + {icon && + (isCollapsed ? ( + + {icon} + + ) : ( + <>{icon} + ))} {!isCollapsed && ( {item.title}