mirror of
https://github.com/betagouv/mon-entreprise
synced 2025-02-10 15:05:01 +00:00
chore: supprime le composant inutilisé RuleReferences
This commit is contained in:
parent
9e656c3233
commit
ab515d2450
1 changed files with 0 additions and 20 deletions
|
@ -133,23 +133,3 @@ const getDomain = (link: string) =>
|
|||
'www.',
|
||||
''
|
||||
)
|
||||
|
||||
export function RuleReferences({ dottedNames }: { dottedNames: DottedName[] }) {
|
||||
const engine = useEngine()
|
||||
|
||||
return (
|
||||
<Ul>
|
||||
{dottedNames
|
||||
.filter(
|
||||
(dottedName) => engine.evaluate(`${dottedName} != non`).nodeValue
|
||||
)
|
||||
.map((dottedName) =>
|
||||
Object.entries(
|
||||
engine.getRule(dottedName).rawNode.références ?? {}
|
||||
).map(([title, href]) => (
|
||||
<Reference key={href} title={title} href={href} />
|
||||
))
|
||||
)}
|
||||
</Ul>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue