@@ -4,6 +4,15 @@ import PropTypes from "prop-types"
4
4
import { dotPath , isNilOrEmpty } from "ramdasauce"
5
5
import React , { Component } from "react"
6
6
import stringifyObject from "stringify-object"
7
+ import {
8
+ MdList ,
9
+ MdRepeat ,
10
+ MdCode ,
11
+ MdCallReceived ,
12
+ MdCallMade ,
13
+ MdReceipt ,
14
+ MdContentCopy ,
15
+ } from "react-icons/md"
7
16
import AppStyles from "../Theme/AppStyles"
8
17
import { apiToMarkdown } from "../Lib/api-to-markdown"
9
18
import { apiRequestToCurl } from "../Lib/api-to-curl"
@@ -22,39 +31,39 @@ const TIP_REPLAY_ACTION = "Repeat this action."
22
31
const TIP_CUSTOMIZE_REPLAY_ACTION = "Edit and dispatch this action."
23
32
24
33
const ToggleSagaViewDetailButton = props => (
25
- < Button icon = "list" onClick = { props . onClick } tip = { TIP_SAGA_VIEW_DETAILS } />
34
+ < Button icon = { MdList } onClick = { props . onClick } tip = { TIP_SAGA_VIEW_DETAILS } />
26
35
)
27
36
28
37
const ReplayButton = props => (
29
- < Button icon = "repeat" onClick = { props . onClick } tip = { TIP_REPLAY_ACTION } />
38
+ < Button icon = { MdRepeat } onClick = { props . onClick } tip = { TIP_REPLAY_ACTION } />
30
39
)
31
40
32
41
const CustomizeReplayButton = props => (
33
- < Button icon = "code" onClick = { props . onClick } tip = { TIP_CUSTOMIZE_REPLAY_ACTION } />
42
+ < Button icon = { MdCode } onClick = { props . onClick } tip = { TIP_CUSTOMIZE_REPLAY_ACTION } />
34
43
)
35
44
36
45
const CopyApiResponseButton = props => (
37
- < Button icon = "call-received" onClick = { props . onClick } tip = "Copy JSON response to clipboard" />
46
+ < Button icon = { MdCallReceived } onClick = { props . onClick } tip = "Copy JSON response to clipboard" />
38
47
)
39
48
40
49
const CopyApiRequestButton = props => (
41
- < Button icon = "call-made" onClick = { props . onClick } tip = "Copy JSON request to clipboard" />
50
+ < Button icon = { MdCallMade } onClick = { props . onClick } tip = "Copy JSON request to clipboard" />
42
51
)
43
52
44
53
const CopyApiMarkdownButton = props => (
45
- < Button icon = "receipt" onClick = { props . onClick } tip = "Copy as markdown to clipboard" />
54
+ < Button icon = { MdReceipt } onClick = { props . onClick } tip = "Copy as markdown to clipboard" />
46
55
)
47
56
48
57
const CopyApiRequestAsCurlButton = props => (
49
- < Button icon = 'content-copy' onClick = { props . onClick } tip = ' Copy JSON request as cURL' />
58
+ < Button icon = { MdContentCopy } onClick = { props . onClick } tip = " Copy JSON request as cURL" />
50
59
)
51
60
52
61
const CopyLogButton = props => (
53
- < Button icon = "content-copy" onClick = { props . onClick } tip = "Copy text to clipboard" />
62
+ < Button icon = { MdContentCopy } onClick = { props . onClick } tip = "Copy text to clipboard" />
54
63
)
55
64
56
65
const CopyDisplayButton = props => (
57
- < Button icon = "content-copy" onClick = { props . onClick } tip = "Copy text to clipboard" />
66
+ < Button icon = { MdContentCopy } onClick = { props . onClick } tip = "Copy text to clipboard" />
58
67
)
59
68
60
69
@inject ( "session" )
0 commit comments