Skip to content

Commit fa4f162

Browse files
remove isBlockedFromConcierge from AttachmentPickerWithMenuItems
1 parent 639ca63 commit fa4f162

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/pages/home/report/ReportActionCompose/AttachmentPickerWithMenuItems.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ type AttachmentPickerWithMenuItemsProps = {
5858
/** Whether or not the composer is full size */
5959
isComposerFullSize: boolean;
6060

61-
/** Whether or not the user is blocked from concierge */
62-
isBlockedFromConcierge: boolean;
63-
6461
/** Whether or not the attachment picker is disabled */
6562
disabled?: boolean;
6663

@@ -112,7 +109,6 @@ function AttachmentPickerWithMenuItems({
112109
isFullComposerAvailable,
113110
isComposerFullSize,
114111
reportID,
115-
isBlockedFromConcierge,
116112
disabled,
117113
setMenuVisibility,
118114
isMenuVisible,
@@ -373,7 +369,7 @@ function AttachmentPickerWithMenuItems({
373369
setMenuVisibility(!isMenuVisible);
374370
}}
375371
style={styles.composerSizeButton}
376-
disabled={isBlockedFromConcierge || disabled}
372+
disabled={disabled}
377373
role={CONST.ROLE.BUTTON}
378374
accessibilityLabel={translate('common.create')}
379375
>
@@ -400,7 +396,7 @@ function AttachmentPickerWithMenuItems({
400396
// Keep focus on the composer when Collapse button is clicked.
401397
onMouseDown={(e) => e.preventDefault()}
402398
style={styles.composerSizeButton}
403-
disabled={isBlockedFromConcierge || disabled}
399+
disabled={disabled}
404400
role={CONST.ROLE.BUTTON}
405401
accessibilityLabel={translate('reportActionCompose.collapse')}
406402
>
@@ -424,7 +420,7 @@ function AttachmentPickerWithMenuItems({
424420
// Keep focus on the composer when Expand button is clicked.
425421
onMouseDown={(e) => e.preventDefault()}
426422
style={styles.composerSizeButton}
427-
disabled={isBlockedFromConcierge || disabled}
423+
disabled={disabled}
428424
role={CONST.ROLE.BUTTON}
429425
accessibilityLabel={translate('reportActionCompose.expand')}
430426
>

src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ function ReportActionCompose({
613613
reportParticipantIDs={reportParticipantIDs}
614614
isFullComposerAvailable={isFullComposerAvailable}
615615
isComposerFullSize={isComposerFullSize}
616-
isBlockedFromConcierge={isBlockedFromConcierge}
617-
disabled={false}
616+
disabled={isBlockedFromConcierge}
618617
setMenuVisibility={setMenuVisibility}
619618
isMenuVisible={isMenuVisible}
620619
onTriggerAttachmentPicker={onTriggerAttachmentPicker}

0 commit comments

Comments
 (0)