diff --git a/src/components/Token/Token.tsx b/src/components/Token/Token.tsx
index 2b6367c5..d86e6fa7 100644
--- a/src/components/Token/Token.tsx
+++ b/src/components/Token/Token.tsx
@@ -60,7 +60,7 @@ export function Token(props: TokenProps) {
{`${name} (${symbol})`}
{formattedBalance}
-
+
diff --git a/src/components/Tooltip/Tooltip.stories.tsx b/src/components/Tooltip/Tooltip.stories.tsx
index 8133d421..2570963c 100644
--- a/src/components/Tooltip/Tooltip.stories.tsx
+++ b/src/components/Tooltip/Tooltip.stories.tsx
@@ -6,7 +6,7 @@ export default { title: 'Components/Tooltip', component: Tooltip };
export const _Tooltip = {
render: () => (
<>
-
+
>
),
};
@@ -14,7 +14,7 @@ export const _Tooltip = {
export const _TooltipCustomIcon = {
render: () => (
<>
-
+ Hello I am tooltip content}>
>
diff --git a/src/components/Tooltip/Tooltip.test.tsx b/src/components/Tooltip/Tooltip.test.tsx
index 742536cd..93209de8 100644
--- a/src/components/Tooltip/Tooltip.test.tsx
+++ b/src/components/Tooltip/Tooltip.test.tsx
@@ -4,7 +4,7 @@ import { Tooltip } from '.';
describe('Components | Toggle', () => {
test('it should render', () => {
- render();
+ render();
let tooltip = screen.getByTestId('Tooltip');
diff --git a/src/components/Tooltip/Tooltip.tsx b/src/components/Tooltip/Tooltip.tsx
index 62623f54..d83498ae 100644
--- a/src/components/Tooltip/Tooltip.tsx
+++ b/src/components/Tooltip/Tooltip.tsx
@@ -5,12 +5,12 @@ import { ComponentPropsWithoutRef, useState } from 'react';
import { FiHelpCircle } from 'react-icons/fi';
export interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
- children?: ReactNode;
customClass?: string;
+ body: ReactNode | string;
}
export function Tooltip(props: TooltipProps) {
- const { content, children, customClass = '', ...rest } = props;
+ const { body, children, customClass = '', ...rest } = props;
const [showTooltip, setShowTooltip] = useState(false);
@@ -29,7 +29,7 @@ export function Tooltip(props: TooltipProps) {
- {content}
+ {body}
)}