mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-13 04:55:03 +00:00
19 lines
373 B
JavaScript
19 lines
373 B
JavaScript
import React, { Component } from 'react'
|
|
import {findRuleByName} from '../model.js'
|
|
import {safeDump} from 'js-yaml'
|
|
import './Rule.css'
|
|
|
|
export default class Rule extends Component {
|
|
render() {
|
|
return (
|
|
<div id="variable">
|
|
<pre>
|
|
<code className="yaml">
|
|
{safeDump(findRuleByName(this.props.params.name)[2])}
|
|
</code>
|
|
</pre>
|
|
</div>
|
|
|
|
)
|
|
}
|
|
}
|