Skip to content

Commit

Permalink
test/species-distrib
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Jul 19, 2024
1 parent ded3407 commit 12424e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/containers/datasets/species-distribution/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ const SpeciesDistribution = () => {
const trianglePosition = (total * lineChartWidth) / worldwideTotal - 11; // substract icon size

// fires synchronously after all DOM mutations.
useLayoutEffect(() => {
if (ref && ref.current && ref.current.offsetWidth) {
setLineChartWidth(ref?.current?.offsetWidth);
}
}, [ref]);
// useLayoutEffect(() => {
// if (ref && ref.current && ref.current.offsetWidth) {
// setLineChartWidth(ref?.current?.offsetWidth);
// }
// }, [ref]);

if (noData) return <NoData />;
// if (noData) return <NoData />;

return (
<div className={WIDGET_CARD_WRAPPER_STYLE}>
Expand All @@ -54,7 +54,7 @@ const SpeciesDistribution = () => {
<span className="font-bold">{total}</span> species of mangroves distributed by country
as map shows.
</p>
<div className="relative flex flex-1 flex-col font-sans text-sm text-black/85">
{/* <div className="relative flex flex-1 flex-col font-sans text-sm text-black/85">
<p className="w-full text-end opacity-50">total species</p>
<div
Expand Down Expand Up @@ -82,7 +82,7 @@ const SpeciesDistribution = () => {
<p key={l}>{l}</p>
))}
</div>
</div>
</div> */}
</div>
)}
</div>
Expand Down

0 comments on commit 12424e6

Please sign in to comment.