react-scrubbing-timeline
Advanced tools
Comparing version 0.1.9 to 0.2.0
{ | ||
"name": "react-scrubbing-timeline", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"author": "MahdiBZ", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -21,2 +21,10 @@ import { arrayOf, exact, number, oneOf, string } from "prop-types"; | ||
}; | ||
const getColor = (actionType) => { | ||
switch (actionType){ | ||
case "PASTE": return "red"; | ||
case "TYPE" : return "white"; | ||
case "TEST": return "blue" | ||
default: return "white" | ||
} | ||
}; | ||
return ( | ||
@@ -40,4 +48,3 @@ <div className="timeline-wrapper"> | ||
className={`timeline-item ${ | ||
ta.actionType !== "PASTE" ? "white" : "red" | ||
}`} | ||
getColor(ta.actionType)}`} | ||
key={`${ta.lang}-${i}`} | ||
@@ -44,0 +51,0 @@ style={{ left: (ta.time / duration) * 100 + "%" }} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38440
348