File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Sometimes you want to change or get a CSS custom property value inside you react
3737
3838## 🚀 Installation
3939
40- ` npm i @jcofman/ react-use-css-custom-property --save ` or ` yarn add @jcofman/ react-use-css-custom-property `
40+ ` npm i react-use-css-custom-property --save ` or ` yarn add react-use-css-custom-property `
4141
4242## Usage
4343
@@ -48,7 +48,7 @@ import 'react-app-polyfill/ie11';
4848import * as React from ' react' ;
4949import * as ReactDOM from ' react-dom' ;
5050import ' ./index.css' ;
51- import useCSSCustomProperty from ' @jcofman/ react-use-css-custom-property' ;
51+ import useCSSCustomProperty from ' react-use-css-custom-property' ;
5252
5353const App = () => {
5454 const [firstColor , setFirstColor ] = useCSSCustomProperty (' --first-color' );
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <coverage generated =" 1585495549724 " clover =" 3.2.0" >
3- <project timestamp =" 1585495549724 " name =" All files" >
2+ <coverage generated =" 1585497629243 " clover =" 3.2.0" >
3+ <project timestamp =" 1585497629243 " name =" All files" >
44 <metrics statements =" 0" coveredstatements =" 0" conditionals =" 0" coveredconditionals =" 0" methods =" 0" coveredmethods =" 0" elements =" 0" coveredelements =" 0" complexity =" 0" loc =" 0" ncloc =" 0" packages =" 0" files =" 0" classes =" 0" />
55 </project >
66</coverage >
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ <h1>All files</h1>
7979 < div class ='footer quiet pad2 space-top1 center small '>
8080 Code coverage generated by
8181 < a href ="https://istanbul.js.org/ " target ="_blank "> istanbul</ a >
82- at Sun Mar 29 2020 17:25:49 GMT+0200 (GMT+02:00)
82+ at Sun Mar 29 2020 18:00:29 GMT+0200 (GMT+02:00)
8383 </ div >
8484 </ div >
8585 < script src ="prettify.js "> </ script >
Original file line number Diff line number Diff line change 2828 "singleQuote" : true ,
2929 "trailingComma" : " es5"
3030 },
31- "name" : " @jcofman/react-use-css-custom-property" ,
32- "author" : " jcofman" ,
31+ "author" : {
32+ "name" : " jcofman" ,
33+ "email" : " cofman.jacob@gmail.com" ,
34+ "url" : " https://jcofman.com"
35+ },
36+ "name" : " react-use-css-custom-property" ,
3337 "module" : " dist/react-use-computed-style.esm.js" ,
3438 "devDependencies" : {
3539 "@types/jest" : " ^25.1.4" ,
You can’t perform that action at this time.
0 commit comments