Skip to content

Commit

Permalink
Update transition component structure to match new dialog properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Westerlund committed Mar 15, 2022
1 parent 75ad05f commit 394e792
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Feat.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ class Feat extends React.Component {
this.props.clearClickedFeat()();
};

transition = (props) => {
return <Slide direction="up" {...props} />;
};

Transition = React.forwardRef(function Transition(props, ref) {
return <Slide direction="up" ref={ref} {...props} />;
});
Expand All @@ -111,7 +107,7 @@ class Feat extends React.Component {
return (
<div>
<Dialog fullScreen maxWidth="md" open={this.state.open} onClose={this.props.clearClickedFeat()}
TransitionComponent={this.transition} transitionDuration={1000}>
TransitionComponent={this.Transition} transitionDuration={1000}>
<DialogContent>
{feat &&
<div style={{ maxWidth: '500px', margin: '0 auto' }}>
Expand Down

0 comments on commit 394e792

Please sign in to comment.