From a5e8e73fceb6d3ccaf8432938cfab7c7f0ac48ae Mon Sep 17 00:00:00 2001 From: Tommy Jackson Date: Tue, 18 Feb 2020 20:44:06 +0000 Subject: [PATCH] removed inital declaration of usedThemes from the style sheets so the new version is working. Removed second calling of theme, in which refers to useThemes. --- packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js index d1414e197bed42..dedbb70002b02c 100644 --- a/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js +++ b/packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { elementTypeAcceptingRef } from '@material-ui/utils'; -import { getThemeProps, useTheme } from '@material-ui/styles'; +import { getThemeProps } from '@material-ui/styles'; import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer'; import ownerDocument from '../utils/ownerDocument'; import useEventCallback from '../utils/useEventCallback'; @@ -145,7 +145,6 @@ const SwipeableDrawer = React.forwardRef(function SwipeableDrawer(inProps, ref) ...other } = props; - const theme = useTheme(); const [maybeSwiping, setMaybeSwiping] = React.useState(false); const swipeInstance = React.useRef({ isSwiping: null, @@ -623,7 +622,7 @@ SwipeableDrawer.propTypes = { style: PropTypes.object, }), /** - * The element is used to intercept the touch events on the edge.. + * The element is used to intercept the touch events on the edge. */ SwipeAreaProps: PropTypes.object, /**