Skip to content

Commit

Permalink
front: test input form ui-core (to be removed before merge)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmer2016 committed Apr 10, 2024
1 parent f7da030 commit bce3397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -40,19 +41,17 @@ const RollingStockEditorMetadataFormColumn = ({
return (
<>
{propertiesList.map((property, index) => (
<InputSNCF
containerClass="col-6 px-0"
<Input
inputWrapperClassname="col-6 px-0"
key={index}
id={property.title}
name={property.title}
label={t(property.title)}
type={property.type}
value={rollingStockValues[property.title] as string | number}
onChange={(e) =>
setRollingStockValues({ ...rollingStockValues, [property.title]: e.target.value })
}
sm
isFlex
key={index}
small
/>
))}
</>
Expand Down
2 changes: 1 addition & 1 deletion front/src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
@import 'scss/applications/operationalStudies';
@import 'scss/applications/rollingStockEditor/rollingStockForm';
@import 'scss/applications/stdcm';
@import 'scss/_uiCoreIintegration.scss';
@import 'scss/_uiCoreIintegration.scss';

0 comments on commit bce3397

Please sign in to comment.