diff --git a/frontend/app/components/Dashboard/components/DashboardList/NewDashModal/Examples/Path.tsx b/frontend/app/components/Dashboard/components/DashboardList/NewDashModal/Examples/Path.tsx index cc2ab61c1..52fd9c31a 100644 --- a/frontend/app/components/Dashboard/components/DashboardList/NewDashModal/Examples/Path.tsx +++ b/frontend/app/components/Dashboard/components/DashboardList/NewDashModal/Examples/Path.tsx @@ -56,4 +56,4 @@ function ExamplePath({ onCard }: { onCard: (card: string) => void }) { ); } -export default ExamplePath \ No newline at end of file +export default ExamplePath diff --git a/frontend/app/components/shared/Insights/SankeyChart/CustomNode.tsx b/frontend/app/components/shared/Insights/SankeyChart/CustomNode.tsx index aa0797838..34fdf134e 100644 --- a/frontend/app/components/shared/Insights/SankeyChart/CustomNode.tsx +++ b/frontend/app/components/shared/Insights/SankeyChart/CustomNode.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Layer, Rectangle } from 'recharts'; +import {Layer, Rectangle} from 'recharts'; import NodeButton from './NodeButton'; interface CustomNodeProps { @@ -14,43 +14,44 @@ interface CustomNodeProps { } const CustomNode: React.FC = (props) => { - const { x, y, width, height, index, payload, containerWidth } = props; + const {x, y, width, height, index, payload, containerWidth} = props; const isOut = x + width + 6 > containerWidth; + const isDemo = payload.isDemo; - return ( - - + return ( + + - {/**/} - {/* */} - {/**/} + {/**/} + {/* */} + {/**/} - {!isDemo ? ( - - - - ) : ( - -
{payload.name}
-
- )} -
- ); + {!isDemo ? ( + + + + ) : ( + +
{payload.name}
+
+ )} +
+ ); } export default CustomNode;