-
Notifications
You must be signed in to change notification settings - Fork 0
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: Create basic table component #3
feat: Create basic table component #3
Conversation
…nd-layout' into feature/create-basic-table-component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@delemaf congratulations on your first PR in zebra, looks great! minor changes/queries suggested.
} | ||
|
||
export const BasicTable: React.FC<BasicTableProps> = React.memo( | ||
({ columns, rows, onChange = () => {}, showRowIndex = false }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we have a default value for onChange(), or should we check if(onChange()) before every call?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure every table will need onChange so I left default value but I don't know what's best
src/webapp/pages/incident-action-plan/IncidentActionPlanPage.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @delemaf ! It looks great this new component 🎉 together with Sneha's comments I've left some others
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@delemaf everything looks good to me! 🚀 just add the useCallback and that's all for my point of view
@delemaf now the table looks like this: it's ok? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thansk @delemaf ! It looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, thanks @delemaf
📌 References
📝 Implementation
📹 Screenshots/Screen capture
🔥 Notes to the tester
BasicTable
have been added in Incident Action Plan page (go to http://localhost:8081/#/test/incident-action-plan/test)