Skip to content

Commit

Permalink
fix: some exports
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
  • Loading branch information
TheMaskedTurtle committed Oct 3, 2024
1 parent 4b0db78 commit b22fc33
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/components/filter/expert/ExpertFilterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ import * as yup from 'yup';
import { v4 as uuid4 } from 'uuid';
import { useIntl } from 'react-intl';
import { testQuery } from './expertFilterUtils';
import { COMBINATOR_OPTIONS, EXPERT_FILTER_EQUIPMENTS, fields, OPERATOR_OPTIONS, RULES } from './expertFilterConstants';
import {
COMBINATOR_OPTIONS,
EXPERT_FILTER_EQUIPMENTS,
EXPERT_FILTER_FIELDS,
OPERATOR_OPTIONS,
RULES,
} from './expertFilterConstants';

import { FieldType } from './expertFilter.type';
import { FieldConstants } from '../../../utils/constants/fieldConstants';
Expand Down Expand Up @@ -110,7 +116,7 @@ export function ExpertFilterForm() {
});

const translatedFields = useMemo(() => {
return fields[watchEquipmentType]?.map((field) => {
return EXPERT_FILTER_FIELDS[watchEquipmentType]?.map((field) => {
return {
...field,
label: intl.formatMessage({ id: field.label }),
Expand Down
2 changes: 1 addition & 1 deletion src/components/filter/expert/expertFilterConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,7 @@ export const FIELDS_OPTIONS = {
},
};

export const fields: Record<string, Field[]> = {
export const EXPERT_FILTER_FIELDS: Record<string, Field[]> = {
SUBSTATION: [FIELDS_OPTIONS.ID, FIELDS_OPTIONS.NAME, FIELDS_OPTIONS.COUNTRY, FIELDS_OPTIONS.PROPERTY],
VOLTAGE_LEVEL: [
FIELDS_OPTIONS.ID,
Expand Down
2 changes: 2 additions & 0 deletions src/components/inputs/reactHookForm/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

export * from './CancelButton';
export * from './FieldLabel';
export * from './SubmitButton';
export * from './TextFieldWithAdornment';
Expand Down

0 comments on commit b22fc33

Please sign in to comment.