Skip to content

Commit

Permalink
comment unused tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Aug 13, 2023
1 parent 0aa057d commit ca63dfd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions frontend/src/components/Charts/SimpleLineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ const SimpleLineChart: React.FC<{ data: Data[] }> = ({ data }) => {
const [point, setPoints] = useState(null);


const CustomTooltip = ({ payload }) => {
if (payload) {
return (
<div className="flex justify-center items-center bg-secondary-800 text-black w-40 h-32">
<p>{payload[0]?.value}</p>
</div>
);
}
return null;
};
// const CustomTooltip = ({ payload }) => {
// if (payload) {
// return (
// <div className="flex justify-center items-center bg-secondary-800 text-black w-40 h-32">
// <p>{payload[0]?.value}</p>
// </div>
// );
// }
// return null;
// };

const updateTooltip = (e) => {
let x = Math.round(e.cx);
Expand Down

0 comments on commit ca63dfd

Please sign in to comment.