From fcf8f1d279c6573f32a444ee9c5b485838b1e7ef Mon Sep 17 00:00:00 2001 From: Carlos Cruz Date: Tue, 26 Nov 2024 10:50:15 +0000 Subject: [PATCH] [Platform]: styles vis controls (#560) --- .../src/variant/GWASCredibleSets/Body.tsx | 17 +++++++---- .../components/Section/SectionViewToggle.tsx | 30 ++++++++++++++----- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/packages/sections/src/variant/GWASCredibleSets/Body.tsx b/packages/sections/src/variant/GWASCredibleSets/Body.tsx index 38d591c7b..700c4f3c1 100644 --- a/packages/sections/src/variant/GWASCredibleSets/Body.tsx +++ b/packages/sections/src/variant/GWASCredibleSets/Body.tsx @@ -165,7 +165,8 @@ function getColumns({ id, referenceAllele, alternateAllele }: getColumnsType) { { id: "confidence", label: "Fine-mapping confidence", - tooltip: "Fine-mapping confidence based on the suitability of the linkage-desequilibrium information and fine-mapping method", + tooltip: + "Fine-mapping confidence based on the suitability of the linkage-desequilibrium information and fine-mapping method", sortable: true, renderCell: ({ confidence }) => { if (!confidence) return naLabel; @@ -260,14 +261,18 @@ function Body({ id, entity }: BodyProps) { alternateAllele={request.data?.variant.alternateAllele} /> )} + renderChart={() => { + return ( + + ); + }} renderBody={() => { return ( <> - void; @@ -23,13 +26,26 @@ function SectionViewToggle({ }; return ( - - { + const iconView = VIEW.table ? faTableColumns : faChartPie; + return ( + + {view} view + + ); + }} + > + + + {VIEW.table} - - {VIEW.chart} View + + {VIEW.chart}