Skip to content
Open
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
2 changes: 1 addition & 1 deletion frontend/src/components/ToggleableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const ToggleableList = ({
{(showAll ? items : items.slice(0, limit)).map((item) => (
<button
key={item}
className="rounded-lg border border-gray-400 px-3 py-1 text-sm hover:bg-gray-200 dark:border-gray-300 dark:hover:bg-gray-700"
className="cursor-pointer rounded-lg border border-gray-400 px-3 py-1 text-sm hover:bg-gray-200 dark:border-gray-300 dark:hover:bg-gray-700"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Munishgowda This component has a isDisabled prop.
I believe when the click is disabled we should not show the cursor. Can you update this to be a dynamic value?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Munishgowda please also update tests for this component.

onClick={() => !isDisabled && handleButtonClick({ item })}
>
{item}
Expand Down