-
Notifications
You must be signed in to change notification settings - Fork 7
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(datatrak): RN-1408: Move ProjectSelectForm to ui-components #5910
base: dev
Are you sure you want to change the base?
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.
Looks good! A couple of minor ts comments but nothing major so pre-approving
@@ -21,6 +22,20 @@ const ListWrapper = styled.div` | |||
} | |||
`; | |||
|
|||
type ListItemType = Record<string, unknown> & { |
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.
Thoughts on adding this to ui-components
too, since it's the same as another component uses?
|
||
// explicity set the types so that the overrides are applied, for the `button` prop | ||
// explicitly set the types so that the overrides are applied, for the `button` prop |
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.
Whoops 😆
@@ -126,6 +116,7 @@ export const ListItem = ({ item, children, onSelect }: ListItemProps) => { | |||
|
|||
return ( | |||
<li> | |||
{/*@ts-ignore*/} |
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.
Do we still need this?
onRequestAccess: (projectCode: Project['code']) => void; | ||
projects?: Project[]; | ||
isLoading: boolean; | ||
onConfirm: (data: Record<string, any>) => void; |
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.
onConfirm: (data: Record<string, any>) => void; | |
onConfirm: (data: {projectId: string}) => void; |
Issue #: feat(datatrak): RN-1408: Move ProjectSelectForm to ui-components
Changes: