Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console info removed #172

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 35 additions & 38 deletions client/src/containers/countries/countries-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const CountriesTable = () => {
}
return "-";
};
console.info(TABLE_ROWS_DATA);

return (
<div className="w-full overflow-auto">
{((!!TABLE_ROWS_DATA && !TABLE_ROWS_DATA.length) || !TABLE_ROWS_DATA) && (
Expand Down Expand Up @@ -104,45 +104,42 @@ const CountriesTable = () => {
<td key={v.iso3} className="space-x-1 space-y-1.5 p-3">
{v.isResource ? (
v.resources?.length ? (
v.resources?.map((r) => {
console.info(r, r.link_url, r.link_title);
return (
<Popover key={r.link_title}>
<PopoverTrigger className="whitespace-nowrap rounded border border-brand1/20 bg-brand1/10 px-2.5 py-[3px] text-xs leading-none text-brand1 data-[state='open']:bg-brand1 data-[state='open']:text-white">
{r.link_title}
</PopoverTrigger>
<PopoverPortal>
<PopoverContent
id={`popover-${t.name}`}
className="w-fit min-w-[240px] max-w-[500px] space-y-3 border-none bg-gray-700 text-white"
>
<PopoverArrow className="fill-gray-700" />
v.resources?.map((r) => (
<Popover key={r.link_title}>
<PopoverTrigger className="whitespace-nowrap rounded border border-brand1/20 bg-brand1/10 px-2.5 py-[3px] text-xs leading-none text-brand1 data-[state='open']:bg-brand1 data-[state='open']:text-white">
{r.link_title}
</PopoverTrigger>
<PopoverPortal>
<PopoverContent
id={`popover-${t.name}`}
className="w-fit min-w-[240px] max-w-[500px] space-y-3 border-none bg-gray-700 text-white"
>
<PopoverArrow className="fill-gray-700" />

<div className="flex items-center justify-between font-open-sans">
<p className="text-xxs font-semibold uppercase leading-none text-gray-400">
{t.name}
</p>
<PopoverClose>
<LuX className="h-6 w-6 text-white" />
</PopoverClose>
</div>
<p className="border-b border-white/20 pb-3 text-xl">
{r.link_title}
<div className="flex items-center justify-between font-open-sans">
<p className="text-xxs font-semibold uppercase leading-none text-gray-400">
{t.name}
</p>
<p className="text-xs">{r.description}</p>
<a
href={r.link_url}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 py-1.5 text-xs text-brand2"
>
Learn more <LuExternalLink className="h-5 w-5" />
</a>
</PopoverContent>
</PopoverPortal>
</Popover>
);
})
<PopoverClose>
<LuX className="h-6 w-6 text-white" />
</PopoverClose>
</div>
<p className="border-b border-white/20 pb-3 text-xl">
{r.link_title}
</p>
<p className="text-xs">{r.description}</p>
<a
href={r.link_url}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-2 py-1.5 text-xs text-brand2"
>
Learn more <LuExternalLink className="h-5 w-5" />
</a>
</PopoverContent>
</PopoverPortal>
</Popover>
))
) : (
"-"
)
Expand Down
Loading