@siddhantmadhur/react-rating
Advanced tools
Comparing version 1.2.10 to 1.3.0
import React, { SetStateAction } from "react"; | ||
import "./Rating.css"; | ||
interface RatingProps { | ||
export interface RatingProps { | ||
length?: number; | ||
@@ -5,0 +5,0 @@ size?: number; |
@@ -42,3 +42,3 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ | ||
cursor: !readOnly ? "pointer" : "", | ||
}, onClick: () => (props.setValue ? props.setValue(key + 0.5) : null), onMouseEnter: () => { | ||
}, onClick: () => (props.setValue ? props.setValue(key + 1) : null), onMouseEnter: () => { | ||
if (!readOnly) { | ||
@@ -45,0 +45,0 @@ setHoverValue(key + 1); |
{ | ||
"name": "@siddhantmadhur/react-rating", | ||
"private": false, | ||
"version": "1.2.10", | ||
"version": "1.3.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/SiddhantMadhur/react-rating", |
7194