Skip to content

Commit

Permalink
Fix GIF modal
Browse files Browse the repository at this point in the history
  • Loading branch information
koyuawsmbrtn committed Mar 29, 2023
1 parent 45cc2b3 commit 5b946ac
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ const mapDispatchToProps = dispatch => ({
submit: (file, alt) => dispatch(uploadCompose([file], alt)),
});

export default @connect(mapStateToProps, mapDispatchToProps)
@injectIntl
class GIFModal extends ImmutablePureComponent {

static propTypes = {
Expand All @@ -59,7 +57,7 @@ class GIFModal extends ImmutablePureComponent {
return response.blob();
}).then(function(blob) {
const reader = new FileReader();
reader.readAsDataURL(blob);
reader.readAsDataURL(blob);
reader.onloadend = function() {
var dataUrl = reader.result;
const file = dataURLtoFile(dataUrl, 'tenor.mp4');
Expand Down Expand Up @@ -95,3 +93,6 @@ class GIFModal extends ImmutablePureComponent {
}

}


export default connect(mapStateToProps, mapDispatchToProps)(GIFModal);

0 comments on commit 5b946ac

Please sign in to comment.