소스 검색

fix: Replace an inline styleswith propClass (#6265)

bubble
Helen Kosova 4 년 전
committed by GitHub
부모
커밋
bd9117da8e
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/core/components/object-model.jsx

+ 2
- 2
src/core/components/object-model.jsx 파일 보기

@@ -5,7 +5,7 @@ import ImPropTypes from "react-immutable-proptypes"

const braceOpen = "{"
const braceClose = "}"
const propStyle = { color: "#6b6b6b", fontStyle: "italic" }
const propClass = "property"

export default class ObjectModel extends Component {
static propTypes = {
@@ -222,7 +222,7 @@ export default class ObjectModel extends Component {
<span className="brace-close">{ braceClose }</span>
</ModelCollapse>
{
infoProperties.size ? infoProperties.entrySeq().map( ( [ key, v ] ) => <Property key={`${key}-${v}`} propKey={ key } propVal={ v } propStyle={ propStyle } />) : null
infoProperties.size ? infoProperties.entrySeq().map( ( [ key, v ] ) => <Property key={`${key}-${v}`} propKey={ key } propVal={ v } propClass={ propClass } />) : null
}
</span>
}


불러오는 중...
취소
저장