Skip to content

Commit

Permalink
Update useTheme.js
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Feb 18, 2019
1 parent b30e3ea commit a84515b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/material-ui-styles/src/useTheme.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import warning from 'warning';
import ThemeContext from './ThemeContext';

export default function useTheme(_) {
warning(!_, "Material-UI: useTheme() doesn't accept any argument.");
export default function useTheme() {
return React.useContext(ThemeContext);
}

0 comments on commit a84515b

Please sign in to comment.