use classcat instead of template literal

This commit is contained in:
Robin Goupil
2020-08-28 20:12:11 +02:00
committed by moklick
parent c55abc8779
commit c8b82f1f32
@@ -1,4 +1,5 @@
import React, { memo, CSSProperties } from 'react';
import cc from 'classcat';
interface MiniMapNodeProps {
x: number;
@@ -17,7 +18,7 @@ const MiniMapNode = ({ x, y, width, height, style, color, className, borderRadiu
return (
<rect
className={`react-flow__minimap-node ${className}`}
className={cc(['react-flow__minimap-node', className])}
x={x}
y={y}
rx={borderRadius}