We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0805a commit 5ad5a6cCopy full SHA for 5ad5a6c
1 file changed
src/components/Tooltip/EducationalTooltip/index.tsx
@@ -3,6 +3,12 @@ import type {TooltipExtendedProps} from '@components/Tooltip/types';
3
import BaseEducationalTooltip from './BaseEducationalTooltip';
4
5
function EducationalTooltip({children, ...props}: TooltipExtendedProps) {
6
+ const {shouldRender} = props;
7
+
8
+ if (!shouldRender) {
9
+ return children;
10
+ }
11
12
return (
13
<BaseEducationalTooltip
14
// eslint-disable-next-line react/jsx-props-no-spreading
0 commit comments