Skip to content

Commit

Permalink
feat: add overlap title component
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzavisic committed Oct 7, 2024
1 parent 3f44fad commit 9390750
Show file tree
Hide file tree
Showing 8 changed files with 346 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export default () => {
import('./src/main-result/main-result.wc.svelte');
import('./src/insights-overview/insights-overview.wc.svelte');
import('./src/arrow-graph/arrow-graph.wc.svelte');
import('./src/overlap-title/overlap-title.wc.svelte');
};
3 changes: 1 addition & 2 deletions packages/lib/src/arrow-graph/arrow-graph.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
export let lang: string;
export let subtype: string;
export let report: string;
export let direction: string;
export let service: Service = window.GaReportService;
Expand Down Expand Up @@ -81,7 +80,7 @@
}
onMount(async () => {
reportData = await service.getReport(report);
reportData = await service.getReport();
if (details) {
percentile = Number(reportData[details.csvName]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import {onMount} from 'svelte';
import {Service} from '../shared/utils/service';
export let report: string;
export let lang: string;
export let service: Service = window.GaReportService;
Expand Down Expand Up @@ -38,11 +37,10 @@
let p23Percentile = 0; // p23percentile
let p26Percentile = 0; // p26percentile
let show = false;
onMount(async () => {
reportData = await service.getReport(report);
reportData = await service.getReport();
gender = reportData.sex;
bPercentile = Number(reportData.Bpercentile);
Expand Down
3 changes: 1 addition & 2 deletions packages/lib/src/main-result/main-result.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import {getTranslation} from '../shared/functions/helpers';
import {Service} from '../shared/utils/service';
export let report: string;
export let lang: string;
export let service: Service = window.GaReportService;
Expand Down Expand Up @@ -67,7 +66,7 @@
let show = false;
onMount(async () => {
reportData = await service.getReport(report);
reportData = await service.getReport();
glycanage = Number(reportData.glycanage);
chronoage = Number(reportData.chronologicalage);
Expand Down
Loading

0 comments on commit 9390750

Please sign in to comment.