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

feat: improve table component action column #1637

Merged
merged 3 commits into from
Aug 6, 2024
Merged

feat: improve table component action column #1637

merged 3 commits into from
Aug 6, 2024

Conversation

keellyp
Copy link
Collaborator

@keellyp keellyp commented Aug 5, 2024

Roadmap Task

LAGO-182

Context

image

Currently, our table component can only renders button with popper menu, but we want to be more flexible and render any kind of button.

This PR should allow that.

Dive-in: https://www.notion.so/getlago/Dive-in-Request-payment-for-overdue-balance-d19d73c71c794acfb5dbb22e8415e17b?d=f84c0f8220704d86b873fbb5f73b6be3#6cba8087abe8417591b77ef1d211789d

Description

Action column can now support custom ReactNode instead of array of ActionItem

actionColumn={(currentItem) => (
  <Button onClick={() => console.log(currentItem)}>Click</Button>
)}

@keellyp keellyp self-assigned this Aug 5, 2024
@keellyp keellyp merged commit 6845d1e into main Aug 6, 2024
5 checks passed
@keellyp keellyp deleted the lago-182 branch August 6, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants