Skip to content

Commit d680d12

Browse files
committed
fix: Icons not showing in commands
1 parent 853b6f7 commit d680d12

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/Shared/Command.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const Styles = {
5050
},
5151
displayIcon: {
5252
marginRight: 4,
53-
marginBottom: 4,
5453
},
5554
displayIconSize: 16,
5655
preview: {

src/Shared/CommandToolbar.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ import PropTypes from "prop-types"
44
import { dotPath, isNilOrEmpty } from "ramdasauce"
55
import React, { Component } from "react"
66
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"
716
import AppStyles from "../Theme/AppStyles"
817
import { apiToMarkdown } from "../Lib/api-to-markdown"
918
import { apiRequestToCurl } from "../Lib/api-to-curl"
@@ -22,39 +31,39 @@ const TIP_REPLAY_ACTION = "Repeat this action."
2231
const TIP_CUSTOMIZE_REPLAY_ACTION = "Edit and dispatch this action."
2332

2433
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} />
2635
)
2736

2837
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} />
3039
)
3140

3241
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} />
3443
)
3544

3645
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" />
3847
)
3948

4049
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" />
4251
)
4352

4453
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" />
4655
)
4756

4857
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" />
5059
)
5160

5261
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" />
5463
)
5564

5665
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" />
5867
)
5968

6069
@inject("session")

0 commit comments

Comments
 (0)