Skip to content

Commit

Permalink
refactor(charts): Rename "WrapperChart" into "ChartWrapper"
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Dec 9, 2024
1 parent 3e55fed commit 47842a8
Show file tree
Hide file tree
Showing 124 changed files with 375 additions and 375 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import GraphFooter from '../Charts/graph-footer';
import GraphTitle from '../Charts/graph-title';
import Loader from '../Loader';

function WrapperChart({
function ChartWrapper({
chartRef,
children,
dataTitle,
Expand Down Expand Up @@ -139,7 +139,7 @@ function WrapperChart({
);
}

WrapperChart.defaultProps = {
ChartWrapper.defaultProps = {
chartRef: () => {},
dataTitle: {},
enableExport: true,
Expand All @@ -151,7 +151,7 @@ WrapperChart.defaultProps = {
studyType: '',
};

WrapperChart.propTypes = {
ChartWrapper.propTypes = {
chartRef: PropTypes.oneOfType([
PropTypes.func,
PropTypes.shape({ current: PropTypes.object }),
Expand All @@ -171,4 +171,4 @@ WrapperChart.propTypes = {
studyType: PropTypes.oneOf(studiesTypes),
};

export default WrapperChart;
export default ChartWrapper;
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -63,7 +63,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -83,7 +83,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -78,7 +78,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -126,7 +126,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -78,7 +78,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -126,7 +126,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -86,7 +86,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -134,7 +134,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -79,7 +79,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -127,7 +127,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -77,7 +77,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -125,7 +125,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
withDomain,
} from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -75,7 +75,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, categories, dataGraph, dataTitle, id, idWithDomain, intl, sort]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand Down Expand Up @@ -123,7 +123,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -45,7 +45,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -65,7 +65,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -47,7 +47,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -67,7 +67,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -47,7 +47,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -67,7 +67,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -47,7 +47,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -67,7 +67,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -48,7 +48,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -68,7 +68,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { chartOptions } from '../../../../../utils/chartOptions';
import { domains, graphIds } from '../../../../../utils/constants';
import { getObservationLabel, withDomain } from '../../../../../utils/helpers';
import useGlobals from '../../../../../utils/Hooks/useGetGlobals';
import WrapperChart from '../../../../WrapperChart';
import ChartWrapper from '../../../../ChartWrapper';
import GraphComments from '../../../graph-comments';
import useGetData from './get-data';

Expand Down Expand Up @@ -50,7 +50,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
}, [allData, idWithDomain, intl]);

return (
<WrapperChart
<ChartWrapper
chartRef={chartRef}
dataTitle={dataTitle}
domain={domain}
Expand All @@ -70,7 +70,7 @@ const Chart = ({ domain, hasComments, hasFooter, id }) => {
{hasComments && chartComments && (
<GraphComments comments={chartComments} hasFooter={hasFooter} />
)}
</WrapperChart>
</ChartWrapper>
);
};

Expand Down
Loading

0 comments on commit 47842a8

Please sign in to comment.