add react-query
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Group, NumberInput, Paper, Stack, Text } from "@mantine/core";
|
||||
import { useCallback, useState, type RefAttributes } from "react";
|
||||
import { useCallback, useState } from "react";
|
||||
|
||||
type Product = {
|
||||
name: string;
|
||||
@@ -17,7 +17,6 @@ export type ShipmentCardProps = {
|
||||
export default function ShipmentCard({title, date, product}: ShipmentCardProps) {
|
||||
|
||||
const [ price, setPrice ] = useState<number>(0)
|
||||
|
||||
const calculatePrice = useCallback((value: number | string ) => {
|
||||
const numberValue = Number(value)
|
||||
const price = numberValue * product.price
|
||||
|
||||
Reference in New Issue
Block a user