@bytebrand/fe-ui-core-autobahn 1.0.189 → 1.0.191
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.
- package/cards/CarCard.tsx +357 -391
- package/cards/CarRow.tsx +1 -5
- package/cards/cardParts.tsx +1253 -1260
- package/constants/app.ts +1 -11
- package/constants/core.ts +1 -12
- package/locales/de/autobahn.json +880 -879
- package/locales/en/autobahn.json +880 -879
- package/package.json +30 -30
- package/theme/md3.css +15687 -15526
- package/ui/CreditCostNotice.tsx +43 -0
- package/ui/index.ts +93 -90
- package/vdp/FinanceCalculator.tsx +1095 -1090
- package/vdp/VdpModules.tsx +4417 -4409
package/cards/CarRow.tsx
CHANGED
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
ZeroDownChip,
|
|
42
42
|
fmtKm,
|
|
43
43
|
PaymentMode,
|
|
44
|
-
startPaymentMode,
|
|
45
44
|
ratingTone,
|
|
46
45
|
} from './cardParts';
|
|
47
46
|
import { AutobahnCar } from './types';
|
|
@@ -81,8 +80,6 @@ export interface CarRowProps {
|
|
|
81
80
|
* links render as plain text (see PricePaths' own fallback).
|
|
82
81
|
*/
|
|
83
82
|
onShowFinancingDetails?: (car: AutobahnCar, mode: PaymentMode) => void;
|
|
84
|
-
/** Tab the mobile price tabs open on — see CarCard's identically-named prop. */
|
|
85
|
-
initialMode?: PaymentMode;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
@@ -95,9 +92,8 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
|
|
|
95
92
|
t,
|
|
96
93
|
adminAction,
|
|
97
94
|
onShowFinancingDetails,
|
|
98
|
-
initialMode,
|
|
99
95
|
}) => {
|
|
100
|
-
const [mode, setMode] = useState<PaymentMode>(
|
|
96
|
+
const [mode, setMode] = useState<PaymentMode>('financing');
|
|
101
97
|
const [photoIndex, setPhotoIndex] = useState(0);
|
|
102
98
|
const mediaRef = useRef<HTMLDivElement | null>(null);
|
|
103
99
|
// always call the LATEST onMediaEnter without re-arming the observer on every render (the
|