sou 7 лет назад
Родитель
Сommit
7c70420eb5

+ 2 - 6
resource/js/components/Page/RevisionBody.js

@@ -51,7 +51,7 @@ export default class RevisionBody extends React.Component {
             this.props.inputRef(elm);
           }
         }}
-        className={this.props.type} dangerouslySetInnerHTML={this.generateInnerHtml(this.props.html)}>
+        className={'wiki ' + this.props.additionalClassName} dangerouslySetInnerHTML={this.generateInnerHtml(this.props.html)}>
       </div>
     );
   }
@@ -63,9 +63,5 @@ RevisionBody.propTypes = {
   isMathJaxEnabled: PropTypes.bool,
   renderMathJaxOnInit: PropTypes.bool,
   renderMathJaxInRealtime: PropTypes.bool,
-  type: PropTypes.string,
-};
-
-RevisionBody.defaultProps = {
-  type: 'wiki',
+  additionalClassName: PropTypes.string,
 };

+ 1 - 1
resource/js/components/PageComment/Comment.js

@@ -77,7 +77,7 @@ export default class Comment extends React.Component {
           inputRef={el => this.revisionBodyElement = el}
           isMathJaxEnabled={isMathJaxEnabled}
           renderMathJaxOnInit={true}
-          type="comment" />
+          additionalClassName="comment" />
     );
   }
 

+ 1 - 1
resource/js/components/PageComment/CommentPreview.js

@@ -22,7 +22,7 @@ export default class CommentPreview extends React.Component {
 
         <RevisionBody
           {...this.props}
-          type="comment"
+          additionalClassName="comment"
         />
       </div>
     );

+ 0 - 4
resource/styles/scss/_wiki.scss

@@ -41,10 +41,6 @@ div.body {
     font-size: 1.05em;
     font-weight: normal;
   }
-  h6 {
-    font-size: 1.00em;
-    font-weight: normal;
-  }
 
   p {
     font-weight: normal;