diff --git a/docs/src/modules/components/AppFrame.js b/docs/src/modules/components/AppFrame.js index c086c07e8bc2ec..2f3ad2fd1d765c 100644 --- a/docs/src/modules/components/AppFrame.js +++ b/docs/src/modules/components/AppFrame.js @@ -182,19 +182,8 @@ function AppFrame(props) { changeTheme({ paletteType }); }; - - // these handlers used to fix issue with RTL tooltip staying open after click - const [directionTooltipOpen, setDirectionTooltipOpen] = React.useState(false); - const handleDirectionTooltipClose = () => { - setDirectionTooltipOpen(false); - }; - const handleDirectionTooltipOpen = () => { - setDirectionTooltipOpen(true); - }; - const handleToggleDirection = () => { changeTheme({ direction: theme.direction === 'ltr' ? 'rtl' : 'ltr' }); - setDirectionTooltipOpen(false); }; const router = useRouter(); @@ -322,13 +311,7 @@ function AppFrame(props) { {theme.palette.type === 'light' ? : } - +