Skip to content

Commit f912a82

Browse files
authored
Merge pull request #231 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 56c07d4 + 0c326bd commit f912a82

File tree

9 files changed

+1247
-164
lines changed

9 files changed

+1247
-164
lines changed

public/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "7.0.4"
2+
"version": "7.0.5"
33
}

src/components/CippComponents/CippFormComponent.jsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,33 @@ export const CippFormComponent = (props) => {
225225
</>
226226
);
227227

228+
case "select":
229+
return (
230+
<>
231+
<div>
232+
<Controller
233+
name={convertedName}
234+
control={formControl.control}
235+
rules={validators}
236+
render={({ field }) => (
237+
<CippAutoComplete
238+
{...other}
239+
isFetching={other.isFetching}
240+
variant="filled"
241+
defaultValue={field.value}
242+
label={label}
243+
multiple={false}
244+
onChange={(value) => field.onChange(value.value)}
245+
/>
246+
)}
247+
/>
248+
</div>
249+
<Typography variant="subtitle3" color="error">
250+
{get(errors, convertedName, {}).message}
251+
</Typography>
252+
</>
253+
);
254+
228255
case "autoComplete":
229256
return (
230257
<>

0 commit comments

Comments
 (0)