be91a89d68
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>