Skip to content

Commit

Permalink
Add date-key attributes for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
derwebcoder committed Oct 12, 2024
1 parent ea8c1b8 commit 1babf74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/container/SparkList/SparkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const SparkList = () => {
return (
<section
key={section.key}
data-key={section.key}
className="grid grid-cols-[25%_1fr] gap-4 mb-6"
>
<div className="py-2 border-e border-slate-300 pe-4">
Expand Down Expand Up @@ -144,6 +145,7 @@ export const SparkList = () => {
return (
<span
className="text-neutral-400 text-sm ps-3 mb-2"
data-key={section.date.toString()}
key={section.date.toString()}
>
{format(section.date, "dd.MM.yyyy")}
Expand Down

0 comments on commit 1babf74

Please sign in to comment.