Skip to content

Commit

Permalink
Update online presentations UI button to respect CMS setting for the …
Browse files Browse the repository at this point in the history
…field
  • Loading branch information
adamjarling committed May 31, 2024
1 parent 6e68d5d commit 7947c98
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/components/presentations/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import useGetContentfulData from "@/hooks/use-get-contentful-data";

export default function PresentationsList() {
const data = useGetContentfulData("presentation");
console.log("data", data);

const sorted = data ? data.sort(sortDates("desc", "publishedDate")) : [];

Expand All @@ -33,14 +34,16 @@ export default function PresentationsList() {
</div>
<div className="space-y-2">
<div>{fields.conference}</div>
<div className="mt-1 flex items-center justify-start md:justify-end gap-x-1.5">
<div className="flex-none rounded-full bg-emerald-500/20 p-1">
<div className="h-1.5 w-1.5 rounded-full bg-emerald-500" />
{fields.online && (
<div className="mt-1 flex items-center justify-start md:justify-end gap-x-1.5">
<div className="flex-none rounded-full bg-emerald-500/20 p-1">
<div className="h-1.5 w-1.5 rounded-full bg-emerald-500" />
</div>
<div className="text-xs leading-5 text-foreground-muted">
Online
</div>
</div>
<div className="text-xs leading-5 text-foreground-muted">
Online
</div>
</div>
)}
</div>
</li>
))}
Expand Down

0 comments on commit 7947c98

Please sign in to comment.