-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugFix(allPage): Fix all remain bug into champs Bay
- Loading branch information
1 parent
ab7cedb
commit 5575eff
Showing
12 changed files
with
245 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,51 @@ | ||
import React from 'react';//@ts-ignore | ||
import ReactStars from "react-rating-stars-component"; | ||
import React from 'react'; //@ts-ignore | ||
import ReactStars from 'react-rating-stars-component'; | ||
|
||
interface ReviewInterface { | ||
rating:number; | ||
feedback:string; | ||
image:string; | ||
firstName:string; | ||
lastName:string; | ||
buyerId?:string; | ||
rating: number; | ||
feedback: string; | ||
image: string; | ||
firstName: string; | ||
lastName: string; | ||
buyerId?: string; | ||
} | ||
|
||
const ReviewCard: React.FC<ReviewInterface> =({ rating, feedback, image, firstName, lastName }) =>{ | ||
return( | ||
<div className='block'> | ||
<div className="double-grid w-[50%] border rounded-2xl border"> | ||
<div className='flex items-center justify-center w-full'> | ||
<img src={image} className="rounded-full h-[60px] w-[60px] border-black-1 "/> | ||
</div> | ||
<div className="wrap py-4"> | ||
<span className="text-[13px] font-bold capitalize">{firstName} {lastName}</span> | ||
<ReactStars | ||
count={5} | ||
value={rating} | ||
isHalf={true} | ||
size={12} | ||
activeColor="#ffd700" | ||
edit={false} | ||
/> | ||
<span className="text-[12px] bold">{feedback.length > 30 ? feedback.substring(0,30)+'...' : feedback}</span> | ||
</div> | ||
</div> | ||
const ReviewCard: React.FC<ReviewInterface> = ({ | ||
rating, | ||
feedback, | ||
image, | ||
firstName, | ||
lastName, | ||
}) => { | ||
return ( | ||
<div className="block"> | ||
<div className="double-grid sm:w-[50%] w-[90%] rounded-2xl border"> | ||
<div className="flex items-center justify-center w-full"> | ||
<img | ||
src={image} | ||
className="rounded-full h-[60px] w-[60px] border-black-1 " | ||
/> | ||
</div> | ||
) | ||
<div className="wrap py-4"> | ||
<span className="text-[13px] font-bold capitalize"> | ||
{firstName} {lastName} | ||
</span> | ||
<ReactStars | ||
count={5} | ||
value={rating} | ||
isHalf={true} | ||
size={12} | ||
activeColor="#ffd700" | ||
edit={false} | ||
/> | ||
<span className="text-[12px] bold"> | ||
{feedback.length > 30 | ||
? feedback.substring(0, 30) + '...' | ||
: feedback} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
export default ReviewCard; | ||
export default ReviewCard; |
Oops, something went wrong.