You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following types: NewChat: 'NewChat', NewGroup: 'NewGroup', RequestMoney: 'RequestMoney', SplitBill: 'SplitBill', AttachmentPicker: 'AttachmentPicker'
Add a new CreateMenu prop menuOptions which takes an array of the above menuOptions. The menuItemData array should be modified and should now be created dynamically in the constructor, based upon the menuOptions prop
The existing usage of the CreateMenu Modal should then be refactored to use the new prop method (for example here), and new array items should be generated for the new menuOptions (RequestMoney, SplitBill, AttachmentPicker). For now RequestMoney & SplitBill can redirect to an existing route.
A new prop should be created on The ReportView Component: hasMultipleParticipants which will be true if participants is greater than 2
In a 1:1 or group chat, the attachment picker should be replaced with the CreateMenu Component.
The ReportView hasMultipleParticipants prop should then be used to determine the correct menu options to pass in (SplitBill|AddAttachment if true, else RequestMoney|AddAttachment).
When the AttachmentPicker option is selected, a callback to the parent component should be invoked via another new prop: onAttachmentPickerSelected or something similar. Finally, this callback should trigger the AttachmentPicker to be rendered from the ReportActionCompose Component, like it was prior to the CreateMenu addition.
The new image assets (for the new menu items) should be added as Expensicons here -- these should be available as the attachment: MenuIcons.zip
The text was updated successfully, but these errors were encountered:
refactor the CreateMenu class to accept the menuOptions listed above as a prop.
move the menuItemData out of the render and build the array instead in the constructor based on the menuOptions props.
update existing uses of the CreateMenu component to pass the menu items.
update CreateMenu to have a new hasMultipleParticipants prop when more than one participant and if true the menu items would be SplitBill|AddAttachment or RequestMoney|AddAttachment if not true.
add onAttachmentPickerSelected which will render AttachmentPicker if that option is selected
If you haven’t already, check out our contributing guidelines for onboarding!
view the job on Upwork here.
Platform - version:
current
Deliverables:
This issue builds on top of the existing CreateMenu Bottom Drawer (original issue which introduced this modal can be found here)

menuOption
enum to the CreateMenu classNewChat: 'NewChat'
,NewGroup: 'NewGroup'
,RequestMoney: 'RequestMoney'
,SplitBill: 'SplitBill'
,AttachmentPicker: 'AttachmentPicker'
menuOptions
which takes an array of the abovemenuOption
s. ThemenuItemData
array should be modified and should now be created dynamically in the constructor, based upon themenuOptions
propmenuOption
s (RequestMoney, SplitBill, AttachmentPicker). For now RequestMoney & SplitBill can redirect to an existing route.hasMultipleParticipants
which will be true if participants is greater than 2CreateMenu
Component.hasMultipleParticipants
prop should then be used to determine the correct menu options to pass in (SplitBill|AddAttachment
if true, elseRequestMoney|AddAttachment
).onAttachmentPickerSelected
or something similar. Finally, this callback should trigger the AttachmentPicker to be rendered from the ReportActionCompose Component, like it was prior to the CreateMenu addition.The text was updated successfully, but these errors were encountered: