Change design of embed modal in web UI (#31801)

This commit is contained in:
Eugen Rochko 2024-09-12 14:54:16 +02:00 committed by GitHub
parent ab763c493f
commit 24ef8255b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 278 additions and 245 deletions

View file

@ -6,7 +6,6 @@ import {
unmuteAccount,
unblockAccount,
} from '../actions/accounts';
import { showAlertForError } from '../actions/alerts';
import { initBlockModal } from '../actions/blocks';
import {
replyCompose,
@ -100,10 +99,7 @@ const mapDispatchToProps = (dispatch, { contextType }) => ({
onEmbed (status) {
dispatch(openModal({
modalType: 'EMBED',
modalProps: {
id: status.get('id'),
onError: error => dispatch(showAlertForError(error)),
},
modalProps: { id: status.get('id') },
}));
},