fix(vendor-portal): accurate locked banner copy by dispatch status

This commit is contained in:
Arthur Bassi 2026-08-12 09:39:16 -03:00
parent 7366f549e5
commit 2ce7210668

View file

@ -149,8 +149,9 @@ export function DispatchSnapshotDetails({ data, locked }: DispatchSnapshotDetail
<DispatcherContactDetails data={data} />
{locked && (
<Text variant="feedback" className="vp-muted" sx={{ marginTop: 2 }}>
This dispatch is {data.status.toLowerCase()} and locked to further changes. Comments
remain open.
{data.status === "Refused"
? "This dispatch is refused and locked to further changes. Comments remain open."
: `This dispatch is ${data.status.toLowerCase()} and locked to further status changes. Sign-off actions may still be available.`}
</Text>
)}
{Boolean(description) && (