forked from Transparency/kgroad-frontend2
made all pages
This commit is contained in:
1 parent
f6ceb252b2
commit
d6c6504d1f
57 files changed
+2260
-43
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import "./ReportLike.scss";
|
||||
import Image from "next/image";
|
||||
import like from "./icons/like.svg";
|
||||
import { apiInstance } from "@/shared/config/apiConfig";
|
||||
|
||||
interface IReportLikeProps {
|
||||
count: number;
|
||||
}
|
||||
|
||||
const ReportLike: React.FC<IReportLikeProps> = ({
|
||||
count,
|
||||
}: IReportLikeProps) => {
|
||||
const likeReport = async () => {
|
||||
const res = await apiInstance.post("");
|
||||
};
|
||||
return (
|
||||
<button className="report-like">
|
||||
<Image src={like} alt="Like Icon" />
|
||||
<span>{count}</span>
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
export default ReportLike;
|
||||
Reference in new issue
Block a user