Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI authored and arnaudambro committed Feb 7, 2024
1 parent 0ad61a1 commit 5672129
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion dashboard/src/components/Card.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import HelpButtonAndModal from './HelpButtonAndModal';

const Card = ({ title, count, unit, children, countId, dataTestId, help = null, onClick = null }) => {
const Card = ({ title, count, unit, children, countId, dataTestId, help, onClick = null }) => {
const Component = !!onClick ? 'button' : 'div';
const props = !!onClick ? { onClick, type: 'button', name: 'card', className: 'button-cancel' } : {};
return (
Expand Down
13 changes: 0 additions & 13 deletions dashboard/src/components/EvolutiveStatsViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ export default function EvolutiveStatsViewer({ evolutiveStatsIndicators, period,

const field = indicatorsBase.find((field) => field.name === indicator.fieldName);

console.log({
fieldStart,
fieldEnd,
evolutiveStatsPerson,
});
if (fieldEnd == null) {
return (
<>
Expand All @@ -65,14 +60,6 @@ export default function EvolutiveStatsViewer({ evolutiveStatsIndicators, period,
const valueStart = evolutiveStatsPerson[indicator.fieldName][fieldStart][startDateFormatted.format('YYYYMMDD')];
const valueEnd = evolutiveStatsPerson[indicator.fieldName][fieldEnd][endDateFormatted.format('YYYYMMDD')];

console.log({
fieldStart,
fieldEnd,
valueStart,
valueEnd,
evolutiveStatsPerson,
});

return (
<div className="tw-flex tw-w-full tw-justify-around">
<div className="tw-flex tw-shrink-0 tw-basis-1/4 tw-flex-col tw-items-center tw-justify-end tw-gap-y-4">
Expand Down
2 changes: 0 additions & 2 deletions dashboard/src/recoil/evolutiveStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export const evolutiveStatsPersonSelector = selectorFamily({
evolutiveStatsIndicators: IndicatorsSelection;
}) =>
({ get }) => {
const now = Date.now();
const indicatorsBase = get(evolutiveStatsIndicatorsBaseSelector);
const fieldsMap: FieldsMap = indicatorsBase.reduce((acc, field) => {
acc[field.name] = field;
Expand Down Expand Up @@ -269,7 +268,6 @@ export const evolutiveStatsPersonSelector = selectorFamily({
}
}
}
console.log('finito evolutiveStatsPersonSelector', Date.now() - now, 'ms');
return personsFieldsInHistoryObject;
},
});

0 comments on commit 5672129

Please sign in to comment.