Skip to content

Commit

Permalink
fix each child in list should have key in iconModal (#269)
Browse files Browse the repository at this point in the history
* fix received boolean attribute for input placeholder

* fix each child in list should have key in iconModal
  • Loading branch information
tomsun28 authored Feb 18, 2023
1 parent 0b0d276 commit dc40f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/routes/System/Resource/AddModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class AddModal extends Component {
})(
<Input
readOnly
placeholder={!icon&&getIntlContent("SHENYU.SYSTEM.ICON.INPUT")}
placeholder={getIntlContent("SHENYU.SYSTEM.ICON.INPUT")}
prefix={(this.state.icon||icon)&&<Icon type={this.state.icon||icon} />}
suffix={
<Tooltip title={getIntlContent("SHENYU.SYSTEM.ICON.INPUT")}>
Expand Down
4 changes: 2 additions & 2 deletions src/routes/System/Resource/IconModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,9 @@ export default class IconModal extends Component {
/>
<Card className={styles.iconCard}>
{
Object.keys(iconMap).map(groupName=>{
Object.keys(iconMap).map((groupName, index)=>{
return (
<Fragment>
<Fragment key={index}>
<h4>{getIntlContent(groupName) || groupName}</h4>
<div className={styles.iconList}>
{iconMap[groupName].map(icon => {
Expand Down

0 comments on commit dc40f56

Please sign in to comment.