-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.jsx
61 lines (60 loc) · 2.41 KB
/
demo.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import React from 'react'
import * as Content from './index'
import * as msgs from 'patchkit-fixtures/msgs'
export default class MsgContentDemo extends React.Component {
render() {
const postMsg = msgs.posts[0]
const contactMsg = msgs.contacts[0]
return <div>
<h1>patchkit-msg-content</h1>
<section className="msg-view-content-block-post">
<header><Block msg="..."> (post)</header>
<div className="content">
<div className="example"><Content.Block msg={postMsg} /></div>
</div>
</section>
<section className="msg-view-content-inline-post">
<header><Inline msg="..."> (post)</header>
<div className="content">
<div className="example"><Content.Inline msg={postMsg} /></div>
</div>
</section>
<section className="msg-view-content-block-post-raw">
<header><Block msg="..." forceRaw> (post)</header>
<div className="content">
<div className="example"><Content.Block msg={postMsg} forceRaw /></div>
</div>
</section>
<section className="msg-view-content-inline-post-raw">
<header><Inline msg="..." forceRaw> (post)</header>
<div className="content">
<div className="example"><Content.Inline msg={postMsg} forceRaw /></div>
</div>
</section>
<section className="msg-view-content-block-contact">
<header><Block msg="..."> (contact)</header>
<div className="content">
<div className="example"><Content.Block msg={contactMsg} /></div>
</div>
</section>
<section className="msg-view-content-inline-contact">
<header><Inline msg="..."> (contact)</header>
<div className="content">
<div className="example"><Content.Inline msg={contactMsg} /></div>
</div>
</section>
<section className="msg-view-content-block-contact">
<header><Block msg="..." forceRaw> (contact)</header>
<div className="content">
<div className="example"><Content.Block msg={contactMsg} forceRaw /></div>
</div>
</section>
<section className="msg-view-content-inline-contact">
<header><Inline msg="..." forceRaw> (contact)</header>
<div className="content">
<div className="example"><Content.Inline msg={contactMsg} forceRaw /></div>
</div>
</section>
</div>
}
}