Skip to content

Commit

Permalink
test: test like state
Browse files Browse the repository at this point in the history
  • Loading branch information
seoulyego committed Oct 31, 2024
1 parent 86116f7 commit c7eb237
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Button/PreviewLikeButton.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react'
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import { FaHeart, FaRegHeart } from 'react-icons/fa6'
import useProductLike from '@hooks/useProductLike'
Expand Down Expand Up @@ -31,9 +31,11 @@ function PreviewLikeButton({
}
}

/*
useEffect(() => {
setIsLiked(likeContent)
}, [likeContent])
*/

const iconValue = {
color: isLiked ? 'red' : 'darkgray',
Expand Down

0 comments on commit c7eb237

Please sign in to comment.