Skip to content

Commit

Permalink
[sparkle] - fix: correct click handler prop for DataTable.Row compone…
Browse files Browse the repository at this point in the history
…nt (#6619)

- Replaced the onMoreClick prop with onClick to ensure the correct handling of click events on rows
 - Updated the package version to 0.2.199 in both package-lock.json and package.json files for consistency with the new changes

Co-authored-by: Jules <[email protected]>
  • Loading branch information
JulesBelveze and Jules authored Aug 1, 2024
1 parent a8a3629 commit a69863d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sparkle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sparkle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dust-tt/sparkle",
"version": "0.2.198",
"version": "0.2.199",
"scripts": {
"build": "rm -rf dist && rollup -c",
"build:with-tw-base": "rollup -c --environment INCLUDE_TW_BASE:true",
Expand Down
2 changes: 1 addition & 1 deletion sparkle/src/components/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ DataTable.Row = function Row({
<tr
className={classNames(
"s-border-b s-border-structure-200 s-text-sm",
onMoreClick ? "s-cursor-pointer" : "",
onClick ? "s-cursor-pointer" : "",
className || ""
)}
onClick={onClick ? onClick : undefined}
Expand Down

0 comments on commit a69863d

Please sign in to comment.