feature/IO-3357-Reynolds-and-Reynolds-DMS-API-Integration / RRScratch2 / Polish

This commit is contained in:
Dave
2025-11-25 17:59:19 -05:00
parent 3b07055d5a
commit 9faad53b99
6 changed files with 29 additions and 35 deletions

View File

@@ -24,11 +24,10 @@ export default connect(mapStateToProps, mapDispatchToProps)(DmsAllocationsSummar
* @param bodyshop
* @param jobId
* @param title
* @param minHeight
* @returns {JSX.Element}
* @constructor
*/
export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title, minHeight }) {
export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title }) {
const { t } = useTranslation();
const [allocationsSummary, setAllocationsSummary] = useState([]);
@@ -98,8 +97,6 @@ export function DmsAllocationsSummary({ mode, socket, bodyshop, jobId, title, mi
return (
<Card
style={minHeight ? { minHeight } : undefined}
className="dms-summary-card"
title={title}
extra={
<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")}>

View File

@@ -50,7 +50,7 @@ function normalizeJobAllocations(ack) {
* is now done on the backend via buildRogogFromAllocations/buildRolaborFromRogog.
* This component just renders the preview from `ack.rogg` / `ack.rolabor`.
*/
export function RrAllocationsSummary({ socket, bodyshop, jobId, title, minHeight }) {
export function RrAllocationsSummary({ socket, bodyshop, jobId, title }) {
const { t } = useTranslation();
const [roggPreview, setRoggPreview] = useState(null);
const [rolaborPreview, setRolaborPreview] = useState(null);
@@ -281,8 +281,6 @@ export function RrAllocationsSummary({ socket, bodyshop, jobId, title, minHeight
return (
<Card
style={minHeight ? { minHeight } : undefined}
className="dms-summary-card"
title={title}
extra={
<Button onClick={fetchAllocations} aria-label={t("general.actions.refresh")}>