Skip to content

Commit

Permalink
fix: Plugin and deleted unused hook merge
Browse files Browse the repository at this point in the history
  • Loading branch information
petterav committed Mar 22, 2024
1 parent 80bd718 commit a5cefc0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 111 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const PluginInner = (propsFromParent: EnrollmentOverviewProps) => {
isWeightInGrams: chartConfig?.settings.weightInGrams || false,
});

const usePercent = chartConfig?.settings.defaultStandard === 'p';
const isPercentiles = chartConfig?.settings.defaultStandard === 'p';

const [open, setOpen] = useState(true);

Expand Down Expand Up @@ -75,7 +75,7 @@ const PluginInner = (propsFromParent: EnrollmentOverviewProps) => {
<GrowthChart
trackedEntity={mappedTrackedEntity}
measurementData={mappedGrowthVariables}
usePercent={usePercent}
isPercentiles={isPercentiles}
/>
</WidgetCollapsible>
</div>
Expand Down
102 changes: 0 additions & 102 deletions src/components/GrowthChart/GrowthChartBuilder/GrowthChartBuilder.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/utils/DataFetching/Sorting/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { useChartDataForGender } from './useChartDataForGender';
export { usePercentilesOrZScores } from './usePercentilesOrZScores';
6 changes: 0 additions & 6 deletions src/utils/DataFetching/Sorting/usePercentilesOrZScores.ts

This file was deleted.

0 comments on commit a5cefc0

Please sign in to comment.