From a84515bba763394b47658ae5f161ad8187021ad5 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 18 Feb 2019 22:07:31 +0100 Subject: [PATCH] Update useTheme.js --- packages/material-ui-styles/src/useTheme.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/material-ui-styles/src/useTheme.js b/packages/material-ui-styles/src/useTheme.js index dd693a05f8feec..0ca6dd72cf99ee 100644 --- a/packages/material-ui-styles/src/useTheme.js +++ b/packages/material-ui-styles/src/useTheme.js @@ -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); }