diff --git a/src/components/Contexts/VehicleContext.jsx b/src/components/Contexts/VehicleContext.jsx index 96dc6df..eb09f0e 100644 --- a/src/components/Contexts/VehicleContext.jsx +++ b/src/components/Contexts/VehicleContext.jsx @@ -291,11 +291,11 @@ export const VehicleProvider = ({ children }) => { } }; - const getAllFlashpacks = async (options, token) => { + const getAllFlashpacks = async (model, trim, year, options, token) => { try { setBusy(true); - const result = await api.getAllFlashpacks(options, token); + const result = await api.getAllFlashpacks(model, trim, year, options, token); if (result.error) { throw new Error(`Get all flashpacks error. ${result.message}`); } diff --git a/src/components/Controls/ECUDropDown/index.jsx b/src/components/Controls/ECUDropDown/index.jsx index 0ed9188..d54e106 100644 --- a/src/components/Controls/ECUDropDown/index.jsx +++ b/src/components/Controls/ECUDropDown/index.jsx @@ -1,32 +1,52 @@ import React from "react"; -import { Select } from "@material-ui/core"; +import { FormControl, InputLabel, Select } from "@material-ui/core"; +import useStyles from "../../useStyles"; const ECUDropDown = (props) => { const changeHandler = (e) => { if (!props.changeHandler) return; props.changeHandler(e); }; + const classes = useStyles(); return ( - + + {props.label} + + + ); }; export default ECUDropDown; const ECUs = [ + null, ["AGS", "Active Grille Shutter"], ["ADB", "Adaptive Driving Beam"], ["ADAS", "Advanced Driver Assist System"], diff --git a/src/components/Flashpack/Add/__snapshots__/index.test.jsx.snap b/src/components/Flashpack/Add/__snapshots__/index.test.jsx.snap index 9487d26..6e5fcba 100644 --- a/src/components/Flashpack/Add/__snapshots__/index.test.jsx.snap +++ b/src/components/Flashpack/Add/__snapshots__/index.test.jsx.snap @@ -24,138 +24,175 @@ exports[`FlashpackAdd Render 1`] = ` >
- + > + + +
- + > + + + + + + +
- + > + + + + @@ -214,13 +251,11 @@ exports[`FlashpackAdd Render 1`] = ` class="input_container" >