Skip to content

Commit

Permalink
cleanup IntegrationNotistack
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 31, 2019
1 parent d8222c8 commit 0522726
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/demos/snackbars/IntegrationNotistack.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import Button from '@material-ui/core/Button';
import { SnackbarProvider, withSnackbar } from 'notistack';

class App extends React.Component {
static propTypes = {
enqueueSnackbar: PropTypes.func.isRequired,
};

handleClick = () => {
this.props.enqueueSnackbar('I love snacks.');
};
Expand All @@ -27,6 +23,10 @@ class App extends React.Component {
}
}

App.propTypes = {
enqueueSnackbar: PropTypes.func.isRequired,
};

const MyApp = withSnackbar(App);

function IntegrationNotistack() {
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/demos/snackbars/IntegrationNotistack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import Button from '@material-ui/core/Button';
import { SnackbarProvider, VariantType, withSnackbar, withSnackbarProps } from 'notistack';

class App extends React.Component<withSnackbarProps> {
static propTypes = {
enqueueSnackbar: PropTypes.func.isRequired,
};

handleClick = () => {
this.props.enqueueSnackbar('I love snacks.');
};
Expand All @@ -27,6 +23,10 @@ class App extends React.Component<withSnackbarProps> {
}
}

(App as React.ComponentClass<withSnackbarProps>).propTypes = {
enqueueSnackbar: PropTypes.func.isRequired,
};

const MyApp = withSnackbar(App);

function IntegrationNotistack() {
Expand Down

0 comments on commit 0522726

Please sign in to comment.