Further UI Updates.
This commit is contained in:
@@ -15,10 +15,6 @@ export default function ContractCarsContainer({ selectedCarState, form }) {
|
||||
const handleSelect = (record) => {
|
||||
setSelectedCar(record.id);
|
||||
|
||||
console.log(
|
||||
"🚀 ~ file: contract-cars.container.jsx ~ line 19 ~ record",
|
||||
record
|
||||
);
|
||||
form.setFieldsValue({
|
||||
kmstart: record.mileage,
|
||||
dailyrate: record.dailycost,
|
||||
@@ -28,13 +24,11 @@ export default function ContractCarsContainer({ selectedCarState, form }) {
|
||||
|
||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||
return (
|
||||
<div>
|
||||
<ContractCarsComponent
|
||||
handleSelect={handleSelect}
|
||||
selectedCar={selectedCar}
|
||||
loading={loading}
|
||||
data={data ? data.courtesycars : []}
|
||||
/>
|
||||
</div>
|
||||
<ContractCarsComponent
|
||||
handleSelect={handleSelect}
|
||||
selectedCar={selectedCar}
|
||||
loading={loading}
|
||||
data={data ? data.courtesycars : []}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user