mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-30 21:30:59 +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
29
ts/components/stickers/StickerPreviewModal.md
Normal file
29
ts/components/stickers/StickerPreviewModal.md
Normal file
@@ -0,0 +1,29 @@
|
||||
#### Not yet installed
|
||||
|
||||
```jsx
|
||||
const abeSticker = { url: util.squareStickerObjectUrl, packId: 'abe' };
|
||||
|
||||
const pack = {
|
||||
id: 'foo',
|
||||
cover: abeSticker,
|
||||
title: 'Foo',
|
||||
isBlessed: true,
|
||||
author: 'Foo McBarrington',
|
||||
status: 'advertised',
|
||||
stickers: Array(101)
|
||||
.fill(0)
|
||||
.map((n, id) => ({ ...abeSticker, id })),
|
||||
};
|
||||
|
||||
<util.ConversationContext theme={util.theme}>
|
||||
<StickerPreviewModal
|
||||
onClose={() => console.log('onClose')}
|
||||
installStickerPack={(...args) => console.log('installStickerPack', ...args)}
|
||||
uninstallStickerPack={(...args) =>
|
||||
console.log('uninstallStickerPack', ...args)
|
||||
}
|
||||
i18n={util.i18n}
|
||||
pack={pack}
|
||||
/>
|
||||
</util.ConversationContext>;
|
||||
```
|
||||
Reference in New Issue
Block a user