Skip to content

Commit 226c1f2

Browse files
committed
Merge branch 'main' of github.com:Citizen-Knowledge-Graph/foerderfunke-react-app
2 parents b7cdcbd + f407e0e commit 226c1f2

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

src/ui/screens/benefit-page/components/MermaidRulesGraph.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import React, { useEffect, useState } from 'react';
22
import theme from '@/theme';
3-
import { VBox } from '@/ui/shared-components/LayoutBoxes';
3+
import { HBox, VBox } from '@/ui/shared-components/LayoutBoxes';
44
import { Typography } from "@mui/material";
55
import mermaid from "mermaid";
6+
import AntSwitch from "@/ui/shared-components/AntSwitch";
7+
import RegularButton from "@/ui/shared-components/buttons/RegularButton";
68

79
export default function MermaidRulesGraph({ evalGraph, t }) {
810
const [svgContent, setSvgContent] = useState("");
@@ -34,6 +36,32 @@ export default function MermaidRulesGraph({ evalGraph, t }) {
3436
<Typography variant="h2" sx={{ fontWeight: '400', wordBreak: "break-word" }}>
3537
Rules Graph
3638
</Typography>
39+
<HBox gap={4} alignItems="center">
40+
<HBox gap={1} alignItems="center">
41+
<strong>Type:</strong>
42+
<span>Rule</span>
43+
<AntSwitch checked={true} onChange={() => {}} color="white"/>
44+
<span>Evaluation</span>
45+
</HBox>
46+
<HBox gap={1} alignItems="center">
47+
<strong>Orientation:</strong>
48+
<span>Horizontal</span>
49+
<AntSwitch checked={true} onChange={() => {}} color="white"/>
50+
<span>Vertical</span>
51+
</HBox>
52+
<HBox gap={1} alignItems="center">
53+
<strong>Datafields:</strong>
54+
<span>URIs</span>
55+
<AntSwitch checked={true} onChange={() => {}} color="white"/>
56+
<span>Labels</span>
57+
</HBox>
58+
<RegularButton
59+
variant={'blackOutlined'}
60+
text={"Export"}
61+
onClick={() => {}}
62+
size='small'
63+
/>
64+
</HBox>
3765
<Typography variant="body1" component="div">
3866
<div dangerouslySetInnerHTML={{ __html: svgContent }} />
3967
</Typography>

0 commit comments

Comments
 (0)