Skip to content

Commit

Permalink
removed inital declaration of usedThemes from the style sheets so the…
Browse files Browse the repository at this point in the history
… new version is working. Removed second calling of theme, in which refers to useThemes.
  • Loading branch information
TommyJackson85 committed Feb 18, 2020
1 parent c8ebdc3 commit a5e8e73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/material-ui/src/SwipeableDrawer/SwipeableDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
/**
Expand Down

0 comments on commit a5e8e73

Please sign in to comment.