diff --git a/source/components/rule/Rule.js b/source/components/rule/Rule.js index 064ef85e1..a51d607f6 100644 --- a/source/components/rule/Rule.js +++ b/source/components/rule/Rule.js @@ -27,6 +27,8 @@ import References from './References' import './Rule.css' import { AttachDictionary } from '../AttachDictionary' import knownMecanisms from 'Engine/known-mecanisms.yaml' +import emoji from 'react-easy-emoji' +import Source from './RuleSource' export default compose( connect((state, props) => ({ @@ -41,6 +43,7 @@ export default compose( withLanguage )( class Rule extends Component { + state = { viewSource: false } render() { let { dottedName, @@ -60,70 +63,82 @@ export default compose( let showValues = valuesToShow || currentExample return ( -
- - {title} - - - + <> + + {this.state.viewSource ? ( + + ) : ( +
+ + {title} + + + -
- {displayedRule.nodeValue ? ( -
-