From bce3397b424c84e973b7d7254fc1392f416c4e6b Mon Sep 17 00:00:00 2001 From: nncluzu Date: Wed, 10 Apr 2024 10:59:29 +0200 Subject: [PATCH] front: test input form ui-core (to be removed before merge) --- .../RollingStockEditorFormHelpers.tsx | 11 +++++------ front/src/styles/styles.scss | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx index 9ad163a9f03..988ea94437d 100644 --- a/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx +++ b/front/src/modules/rollingStock/components/RollingStockEditor/RollingStockEditorFormHelpers.tsx @@ -1,5 +1,6 @@ import React from 'react'; +import { Input } from '@osrd-project/ui-core'; import cx from 'classnames'; import { floor, isNil } from 'lodash'; import { useTranslation } from 'react-i18next'; @@ -40,19 +41,17 @@ const RollingStockEditorMetadataFormColumn = ({ return ( <> {propertiesList.map((property, index) => ( - setRollingStockValues({ ...rollingStockValues, [property.title]: e.target.value }) } - sm - isFlex - key={index} + small /> ))} diff --git a/front/src/styles/styles.scss b/front/src/styles/styles.scss index e69010e0e2b..a9f880b02a9 100644 --- a/front/src/styles/styles.scss +++ b/front/src/styles/styles.scss @@ -12,4 +12,4 @@ @import 'scss/applications/operationalStudies'; @import 'scss/applications/rollingStockEditor/rollingStockForm'; @import 'scss/applications/stdcm'; -@import 'scss/_uiCoreIintegration.scss'; \ No newline at end of file +@import 'scss/_uiCoreIintegration.scss';