Skip to content

Commit a5e8e73

Browse files
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.
1 parent c8ebdc3 commit a5e8e73

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import ReactDOM from 'react-dom';
44
import { elementTypeAcceptingRef } from '@material-ui/utils';
5-
import { getThemeProps, useTheme } from '@material-ui/styles';
5+
import { getThemeProps } from '@material-ui/styles';
66
import Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';
77
import ownerDocument from '../utils/ownerDocument';
88
import useEventCallback from '../utils/useEventCallback';
@@ -145,7 +145,6 @@ const SwipeableDrawer = React.forwardRef(function SwipeableDrawer(inProps, ref)
145145
...other
146146
} = props;
147147

148-
const theme = useTheme();
149148
const [maybeSwiping, setMaybeSwiping] = React.useState(false);
150149
const swipeInstance = React.useRef({
151150
isSwiping: null,
@@ -623,7 +622,7 @@ SwipeableDrawer.propTypes = {
623622
style: PropTypes.object,
624623
}),
625624
/**
626-
* The element is used to intercept the touch events on the edge..
625+
* The element is used to intercept the touch events on the edge.
627626
*/
628627
SwipeAreaProps: PropTypes.object,
629628
/**

0 commit comments

Comments
 (0)