delete product
This commit is contained in:
@@ -4,17 +4,18 @@ import ModalConfrim from './ModalConfrim'
|
||||
|
||||
interface Props {
|
||||
onDelete: () => void,
|
||||
isloading?: boolean
|
||||
isloading?: boolean,
|
||||
colorIcon?: string,
|
||||
}
|
||||
|
||||
const TrashWithConfrim: FC<Props> = ({ onDelete, isloading = false }) => {
|
||||
const TrashWithConfrim: FC<Props> = ({ onDelete, isloading = false, colorIcon }) => {
|
||||
const [isConfirm, setIsConfirm] = useState(false)
|
||||
return (
|
||||
<div>
|
||||
<Trash
|
||||
onClick={() => setIsConfirm(true)}
|
||||
className='size-5'
|
||||
color='#888'
|
||||
color={colorIcon || '#888'}
|
||||
/>
|
||||
|
||||
<ModalConfrim
|
||||
|
||||
Reference in New Issue
Block a user