mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-01 22:01:49 +01:00
Stickers
Co-authored-by: scott@signal.org Co-authored-by: ken@signal.org
This commit is contained in:
committed by
Scott Nonnenberg
parent
8c8856785b
commit
29de50c12a
16
ts/state/roots/createStickerPreviewModal.tsx
Normal file
16
ts/state/roots/createStickerPreviewModal.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
||||
import { Store } from 'redux';
|
||||
|
||||
import { SmartStickerPreviewModal } from '../smart/StickerPreviewModal';
|
||||
|
||||
// Workaround: A react component's required properties are filtering up through connect()
|
||||
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31363
|
||||
const FilteredStickerPreviewModal = SmartStickerPreviewModal as any;
|
||||
|
||||
export const createStickerPreviewModal = (store: Store, props: Object) => (
|
||||
<Provider store={store}>
|
||||
<FilteredStickerPreviewModal {...props} />
|
||||
</Provider>
|
||||
);
|
||||
Reference in New Issue
Block a user