Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(): remove useless exports #2492

Open
wants to merge 1 commit into
base: fix_vite_hmr_multi_exports
Choose a base branch
from

Conversation

sBouzols
Copy link
Contributor

No description provided.

@@ -91,7 +91,7 @@ const emptyFormData = {
...emptyProperties,
};

export const VSC_MODIFICATION_TABS = {
const VSC_MODIFICATION_TABS = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const VSC_MODIFICATION_TABS = {
enum VSC_MODIFICATION_TABS {

@@ -29,7 +29,7 @@ interface FormulaProps {
index: number;
}

export const OPERATOR_OPTIONS = [
const OPERATOR_OPTIONS = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const OPERATOR_OPTIONS = [
enum OPERATOR_OPTIONS {

@@ -83,14 +83,14 @@ export const getLccConverterStationSchema = () =>
[CONNECTIVITY]: getConnectivityWithPositionSchema(false),
});

export const getEmptyShuntCompensatorOnSideFormData = () => ({
const getEmptyShuntCompensatorOnSideFormData = () => ({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const getEmptyShuntCompensatorOnSideFormData = () => ({
export function getEmptyShuntCompensatorOnSideFormData() {
return ({

[SHUNT_COMPENSATOR_ID]: null,
[SHUNT_COMPENSATOR_NAME]: '',
[MAX_Q_AT_NOMINAL_V]: null,
[SHUNT_COMPENSATOR_SELECTED]: true,
});

export const getEmptyFiltersShuntCompensatorTableFormData = (count = 0) =>
const getEmptyFiltersShuntCompensatorTableFormData = (count = 0) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const getEmptyFiltersShuntCompensatorTableFormData = (count = 0) =>
export function getEmptyFiltersShuntCompensatorTableFormData(count = 0) {
return

@@ -130,7 +130,7 @@ const getShuntCompensatorOnSideCreateData = (
);
};

export const getShuntCompensatorOnSideFromSearchCopy = (shuntCompensatorInfos?: ShuntCompensatorInfos[]) => {
const getShuntCompensatorOnSideFromSearchCopy = (shuntCompensatorInfos?: ShuntCompensatorInfos[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const getShuntCompensatorOnSideFromSearchCopy = (shuntCompensatorInfos?: ShuntCompensatorInfos[]) => {
export function getShuntCompensatorOnSideFromSearchCopy(shuntCompensatorInfos?: ShuntCompensatorInfos[]) {

@@ -39,7 +39,7 @@ const styles = {
},
};

export const NON_EVACUATED_ENERGY_RESULT_INVALIDATIONS = ['nonEvacuatedEnergyResult'];
const NON_EVACUATED_ENERGY_RESULT_INVALIDATIONS = ['nonEvacuatedEnergyResult'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const NON_EVACUATED_ENERGY_RESULT_INVALIDATIONS = ['nonEvacuatedEnergyResult'];
const NON_EVACUATED_ENERGY_RESULT_INVALIDATIONS = ['nonEvacuatedEnergyResult'] as const;

@@ -14,7 +14,7 @@ import PropTypes from 'prop-types';
import { CustomAGGrid } from '@gridsuite/commons-ui';
import { suppressEventsToPreventEditMode } from '../commons/utils';

export const LineTypesCatalogSelectorDialogTabs = {
const LineTypesCatalogSelectorDialogTabs = {
AERIAL_TAB: 0,
UNDERGROUND_TAB: 1,
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
};
} as const;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants