@paro.io/expert-shared-components 1.14.13 → 1.14.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -222,7 +222,7 @@ const DiscussionSection = ({ disputeId, escalationNumber, currentUser, messages,
|
|
|
222
222
|
internalEscalationTo === 'client' && (react_1.default.createElement("label", { className: "flex items-center space-x-2 cursor-pointer" },
|
|
223
223
|
react_1.default.createElement("input", { type: "radio", checked: true, readOnly: true, className: "form-radio text-[#248384]" }),
|
|
224
224
|
react_1.default.createElement("span", { className: "text-sm text-[#333333]" }, "Client Only"))),
|
|
225
|
-
internalEscalationTo === 'both' && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
225
|
+
internalEscalationTo === 'both' || (!internalEscalationTo && !clientEscalationTo) && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
226
226
|
react_1.default.createElement("label", { className: "flex items-center space-x-2 cursor-pointer" },
|
|
227
227
|
react_1.default.createElement("input", { type: "radio", checked: visibility === 'EXPERT_INTERNAL_ONLY', onChange: () => setVisibility('EXPERT_INTERNAL_ONLY'), className: "form-radio text-[#248384]" }),
|
|
228
228
|
react_1.default.createElement("span", { className: "text-sm text-[#333333]" }, "Expert Only")),
|
|
@@ -54,7 +54,7 @@ const InvoiceCard = ({ clientInvoice, createDisputeChatMessage, user, chatMessag
|
|
|
54
54
|
react_1.default.createElement(DisputeSection_1.DisputeSection, { dispute: currentInvoice, documentUploadUrl: documentUploadUrl, uploadExpertClientFiles: uploadExpertClientFiles, updateClientInvoiceDisputeMutation: updateClientInvoiceDisputeMutation, downloadDocumentUrl: downloadDocumentUrl, bucketName: bucketName, isInternal: isInternal, hasDisputeAdminRole: hasDisputeAdminRole })
|
|
55
55
|
:
|
|
56
56
|
react_1.default.createElement(ClientDisputeProjectCard_1.ClientDisputeProjectCard, { clientInvoice: currentInvoice, updateClientInvoiceDisputeMutation: updateClientInvoiceDisputeMutation, documentUploadUrl: documentUploadUrl, downloadDocumentUrl: downloadDocumentUrl, bucketName: bucketName, uploadExpertClientFiles: uploadExpertClientFiles }),
|
|
57
|
-
(currentInvoice === null || currentInvoice === void 0 ? void 0 : currentInvoice.chatEnabled) && disputeId && (react_1.default.createElement(DiscussionSection_1.DiscussionSection, { disputeId: disputeId, currentUser: user, messages: chatMessages, onCreateMessage: createDisputeChatMessage, isInternal: isInternal })),
|
|
57
|
+
(currentInvoice === null || currentInvoice === void 0 ? void 0 : currentInvoice.chatEnabled) && disputeId && (react_1.default.createElement(DiscussionSection_1.DiscussionSection, { disputeId: disputeId, currentUser: user, messages: chatMessages, onCreateMessage: createDisputeChatMessage, isInternal: isInternal, internalEscalationTo: 'both' })),
|
|
58
58
|
isInternal && hasDisputeAdminRole &&
|
|
59
59
|
react_1.default.createElement(DecisionSection_1.DecisionSection, { dispute: currentInvoice, onUpdateDispute: updateClientInvoiceDisputeMutation, updateInvoiceMutation: updateInvoiceMutation, updateClientInvoiceDisputeMutation: updateClientInvoiceDisputeMutation, invoiceSummary: invoiceSummary, user: user, getClientInvoiceSummaryByMonth: getClientInvoiceSummaryByMonth, addClientCredit: addClientCredit, getClientPendingPayouts: getClientPendingPayouts, clientPendingPayouts: clientPendingPayouts }))))));
|
|
60
60
|
};
|