use classcat instead of template literal
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import React, { memo, CSSProperties } from 'react';
|
import React, { memo, CSSProperties } from 'react';
|
||||||
|
import cc from 'classcat';
|
||||||
|
|
||||||
interface MiniMapNodeProps {
|
interface MiniMapNodeProps {
|
||||||
x: number;
|
x: number;
|
||||||
@@ -17,7 +18,7 @@ const MiniMapNode = ({ x, y, width, height, style, color, className, borderRadiu
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<rect
|
<rect
|
||||||
className={`react-flow__minimap-node ${className}`}
|
className={cc(['react-flow__minimap-node', className])}
|
||||||
x={x}
|
x={x}
|
||||||
y={y}
|
y={y}
|
||||||
rx={borderRadius}
|
rx={borderRadius}
|
||||||
|
|||||||
Reference in New Issue
Block a user