mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-23 03:39:44 +00:00
We also fully set up i18n and put it on util as well as making it available on windows.i18n for Backbone views.
415 B
415 B
Rendering a real Whisper.MessageView using <util.MessageParents /> and
<util.BackboneWrapper />.
const model = new Whisper.Message({
type: 'outgoing',
body: 'text',
sent_at: Date.now() - 5000,
})
const View = Whisper.MessageView;
const options = {
model,
};
<util.MessageParents theme={util.theme}>
<util.BackboneWrapper
View={View}
options={options}
/>
</util.MessageParents>