diff --git a/packages/components/src/Draft/Defs/Snippets/index.js b/packages/components/src/Draft/Defs/Snippets/index.js
index c976d93c63a..31625ca7649 100644
--- a/packages/components/src/Draft/Defs/Snippets/index.js
+++ b/packages/components/src/Draft/Defs/Snippets/index.js
@@ -1,9 +1,9 @@
-import React from "react";
-import logoPathString from "./logo-path";
+import React from 'react'
+import logoPathString from './logo-path'
const Snippets = props => {
- const fill = { fill: "currentColor", stroke: "none" };
- const stroke = { fill: "none", stroke: "currentColor" };
+ const fill = { fill: 'currentColor', stroke: 'none' }
+ const stroke = { fill: 'none', stroke: 'currentColor' }
return [
@@ -22,73 +22,32 @@ const Snippets = props => {
,
-
+
,
-
-
-
+
+
+
,
-
-
-
+
+
+
,
-
-
-
+
+
+
,
-
+
- ];
-};
+ ]
+}
-export default Snippets;
+export default Snippets
diff --git a/packages/components/src/Draft/DesignPath/index.js b/packages/components/src/Draft/DesignPath/index.js
index ef2cec5813a..e2a8a60886a 100644
--- a/packages/components/src/Draft/DesignPath/index.js
+++ b/packages/components/src/Draft/DesignPath/index.js
@@ -1,55 +1,57 @@
-import React from "react";
+import React from 'react'
const DesignPath = props => {
- let output = [];
- let i = 0;
- let from = null;
+ console.log('design path props', props)
+ let output = []
+ let i = 0
+ let from = null
for (let op of props.path.ops) {
- if (op.type === "curve") {
+ let key = props.part + props.name + i
+ if (op.type === 'curve') {
output.push(
- );
- i++;
+ )
+ i++
output.push(
- );
- i++;
+ )
+ i++
output.push(
- );
- i++;
+ )
+ i++
output.push(
- );
- from = op.to;
- } else if (op.type !== "close") from = op.to;
+ )
+ from = op.to
+ } else if (op.type !== 'close') from = op.to
}
output.push(
- props.raiseEvent("path", {
+ props.raiseEvent('path', {
path: props.path,
name: props.name,
part: props.part
@@ -57,8 +59,8 @@ const DesignPath = props => {
}
className="design hovertrap"
/>
- );
- return output;
-};
+ )
+ return output
+}
-export default DesignPath;
+export default DesignPath