Perf changes

This commit is contained in:
Bel Curcio
2021-06-08 11:31:48 -03:00
parent 1a729f9e72
commit 7ef0e2273e
9 changed files with 326 additions and 229 deletions

View File

@@ -7,7 +7,7 @@ export interface RatingProps {
value: number
}
const Quantity: FC<RatingProps> = ({ value = 5 }) => {
const Quantity: React.FC<RatingProps> = React.memo(({ value = 5 }) => {
return (
<div className="flex flex-row py-6 text-accent-9">
{rangeMap(5, (i) => (
@@ -22,6 +22,6 @@ const Quantity: FC<RatingProps> = ({ value = 5 }) => {
))}
</div>
)
}
})
export default Quantity