From 9f7560336221ea00014b21627488932ade2d6e16 Mon Sep 17 00:00:00 2001 From: Kevin Ghadyani <97464104+KevinGhadyani-Okta@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:11:08 -0500 Subject: [PATCH] fix: revert #2013 (#2029) This reverts commit 4ae50debc051299774847804509aa1dae0dad831. --- packages/odyssey-react-mui/src/Typography.tsx | 40 +++++-------------- .../odyssey-mui/Tooltip/Tooltip.stories.tsx | 11 ----- 2 files changed, 11 insertions(+), 40 deletions(-) diff --git a/packages/odyssey-react-mui/src/Typography.tsx b/packages/odyssey-react-mui/src/Typography.tsx index 3c4ddb11f0..eb70e636cd 100644 --- a/packages/odyssey-react-mui/src/Typography.tsx +++ b/packages/odyssey-react-mui/src/Typography.tsx @@ -14,9 +14,8 @@ import { Typography as MuiTypography, TypographyProps as MuiTypographyProps, } from "@mui/material"; -import { ElementType, ReactNode, memo, useCallback, useMemo } from "react"; +import { ElementType, ReactNode, memo, useMemo } from "react"; import { SeleniumProps } from "./SeleniumProps"; -import { MuiPropsContext } from "./MuiPropsContext"; export type TypographyVariantValue = | "h1" @@ -108,34 +107,17 @@ const Typography = ({ return componentProp; }, [componentProp, variant]); - const renderTypography = useCallback( - (muiProps) => ( - - ), - [ - ariaDescribedBy, - ariaLabel, - ariaLabelledBy, - children, - color, - component, - testId, - variant, - ] - ); - return ( - {renderTypography} + ); }; diff --git a/packages/odyssey-storybook/src/components/odyssey-mui/Tooltip/Tooltip.stories.tsx b/packages/odyssey-storybook/src/components/odyssey-mui/Tooltip/Tooltip.stories.tsx index 98e34f9a92..0cefbfe757 100644 --- a/packages/odyssey-storybook/src/components/odyssey-mui/Tooltip/Tooltip.stories.tsx +++ b/packages/odyssey-storybook/src/components/odyssey-mui/Tooltip/Tooltip.stories.tsx @@ -13,7 +13,6 @@ import { Meta, StoryObj } from "@storybook/react"; import { Button, - Paragraph, Status, Tag, Tooltip, @@ -148,16 +147,6 @@ export const IconButton: StoryObj = { }, }; -export const ParagraphWrapper: StoryObj = { - ...Template, - args: { - children: , - ariaType: "label", - placement: "top", - text: "This is a tooltip on body copy.", - }, -}; - export const StatusWrapper: StoryObj = { ...Template, args: {