Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const TaskButtonsRecipient = ({
modalContent={
<ModalContent
type={
isPageActive && !volunteer
isPageActive && !recipientReport
? modalContentType.conflict
: isPageActive
? modalContentType.admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const TaskButtonsVolunteer = ({
modalContent={
<ModalContent
type={
isPageActive && !volunteer
isPageActive && !volunteerReport
? modalContentType.conflict
: isPageActive
? modalContentType.admin
Expand All @@ -122,9 +122,8 @@ export const TaskButtonsVolunteer = ({
buttonType={taskButtonType.conflict}
disabledColor={
!volunteer ||
(volunteerReport && isPageActive) ||
(recipientReport && isPageActive) ||
isPageActive
(!!volunteerReport && isPageActive) ||
(!!recipientReport && isPageActive)
}
/>
</ButtonWithModal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import styles from './styles.module.css';

export const ConflictModalContent = ({
active = true,
conflict = true,
conflict,
taskId,
userRole,
volunteer,
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/task-buttons-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const ModalContent = ({
<CloseModalContent date={date} userRole={userRole} taskId={taskId} />
);
case modalContentType.conflict:
return <ConflictModalContent userRole={userRole} volunteer={volunteer} />;
return <ConflictModalContent userRole={userRole} volunteer={volunteer} taskId={taskId} />;
case modalContentType.confirm:
return <ConfirmModalContent userRole={userRole} volunteer={volunteer} />;
case modalContentType.admin:
Expand Down