Mentions légales du service

Skip to content
Snippets Groups Projects

Fix 118: unified colors in the Studio + add more entity types in Pathways

Merged Nelly BARRET requested to merge fix-118 into main
2 files
+ 5
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -15,6 +15,7 @@ import {
} from "@mui/x-data-grid";
import { useLang } from "../../context/Lang";
import {TYPES} from "../../utils/graph";
function CustomToolbar({ onClick, isExpanded }) {
return (
@@ -66,7 +67,7 @@ function renderCellHighlight(value, entity, color, isFullText) {
</span>
);
}
export default function PathsWaysTable({ label, sizeDataPath, dataPaths }) {
export default function PathsWaysTable({ label, sizeDataPath, dataPaths, row }) {
const { activeLang } = useLang();
const [isFullText, setIsFullText] = React.useState(true);
@@ -84,7 +85,7 @@ export default function PathsWaysTable({ label, sizeDataPath, dataPaths }) {
renderCellHighlight(
cellValues.value,
cellValues.row.leftEntity,
"rgba(255, 149, 97,0.5)",
TYPES[row.leftEntityType].color,
isFullText
);
}
@@ -94,7 +95,7 @@ export default function PathsWaysTable({ label, sizeDataPath, dataPaths }) {
renderCellHighlight(
cellValues.value,
cellValues.row.rightEntity,
"rgba(170, 156, 252,0.5)",
TYPES[row.rightEntityType].color,
isFullText
);
}
Loading