Skip to content

Commit

Permalink
fix syntax (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: Vasseur Pierre <[email protected]>
  • Loading branch information
PierreVasseur and Vasseur Pierre authored Apr 22, 2024
1 parent 2b20098 commit 7d698d3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
8 changes: 4 additions & 4 deletions packages/operations/src/i18n/dictionary.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const dictionary = {
errors: {
847: {
fr: "Ce nom existe déjà",
en: "This label already exists"
}
fr: 'Ce nom existe déjà',
en: 'This label already exists',
},
},
creatorsTitle: {
fr: 'Propriétaires',
Expand All @@ -26,7 +26,7 @@ const dictionary = {
en: 'Delete',
},
includedZone: {
fr: 'Zones géographiques inclues',
fr: 'Zones géographiques incluses',
en: 'Geographical zones included',
},
excludedZone: {
Expand Down
29 changes: 15 additions & 14 deletions packages/operations/src/sims/sims-geography-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
SaveButton,
ActionToolbar,
ErrorBloc,
LabelRequired,
} from '@inseefr/wilco';
import ReactSelect from 'react-select';

Expand Down Expand Up @@ -81,24 +82,24 @@ const SimsGeographyField = ({ onCancel, onSave, territory = {} }) => {
<ErrorBloc error={serverSideError} />
<Row>
<div className="form-group col-md-6">
<label className="form-label w-100">
<LabelRequired className="form-label w-100">
{D1.simsGeographyZoneName}
<input
value={name}
className="form-control"
onChange={(e) => setName(e.target.value)}
/>
</label>
</LabelRequired>
<input
value={name}
className="form-control"
onChange={(e) => setName(e.target.value)}
/>
</div>
<div className="form-group col-md-6">
<label className="form-label w-100">
<LabelRequired className="form-label w-100">
{D2.simsGeographyZoneName}
<input
value={nameLg2}
className="form-control"
onChange={(e) => setNameLg2(e.target.value)}
/>
</label>
</LabelRequired>
<input
value={nameLg2}
className="form-control"
onChange={(e) => setNameLg2(e.target.value)}
/>
</div>
</Row>
<div className="bauhaus-sims-geography-field">
Expand Down

0 comments on commit 7d698d3

Please sign in to comment.