Skip to content

Commit

Permalink
Allow function to be passed as MuiThemeProvider theme prop (#9354)
Browse files Browse the repository at this point in the history
* Allow function to be passed as MuiThemeProvider theme prop

* Mark MuiThemeProvider theme prop as required
  • Loading branch information
ianschmitz authored and rosskevin committed Dec 1, 2017
1 parent d48aa63 commit f69c7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/styles/MuiThemeProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Theme } from './createMuiTheme';

export interface MuiThemeProviderProps {
theme?: Theme;
theme: Theme | ((outer: Theme | null) => Theme);
sheetsManager?: Object;
children: React.ReactNode;
}
Expand Down

0 comments on commit f69c7b5

Please sign in to comment.