-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add skip option at invite team step #7960
Conversation
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.
PR Summary
This pull request adds a 'Skip' option to the InviteTeam component during the onboarding process, addressing issue #5925.
- Added a styled container
StyledActionSkipLinkContainer
for the skip link in/packages/twenty-front/src/pages/onboarding/InviteTeam.tsx
- Implemented an
ActionLink
component with "Skip" text, allowing users to bypass team invitation - Integrated skip functionality with existing
onSubmit
handler, passing an empty email list - Added a
key
prop toRecordBoardColumnHeaderWrapper
in/packages/twenty-front/src/modules/object-record/record-board/components/RecordBoardHeader.tsx
for React optimization
2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
onClick={handleSubmit(async () => { | ||
await onSubmit({ emails: [] }); | ||
})} |
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.
style: Consider extracting this logic into a separate function for better readability and reusability
onClick={handleSubmit(async () => { | |
await onSubmit({ emails: [] }); | |
})} | |
const handleSkip = async () => { | |
await onSubmit({ emails: [] }); | |
}; | |
<...> | |
<ActionLink onClick={handleSubmit(handleSkip)}>Skip</ActionLink> |
@@ -27,7 +27,7 @@ export const RecordBoardHeader = () => { | |||
return ( | |||
<StyledHeaderContainer id="record-board-header"> | |||
{columnIds.map((columnId) => ( | |||
<RecordBoardColumnHeaderWrapper columnId={columnId} /> | |||
<RecordBoardColumnHeaderWrapper columnId={columnId} key={columnId} /> |
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.
unrelated but needed
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.
LGTM
Closing #5925