Skip to content

Commit

Permalink
Update CustomCellRenderers.tsx to DicomLink (uc-cdis#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertSnows authored Dec 8, 2024
1 parent f55e188 commit 496e95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/CohortBuilder/CustomCellRenderers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ActionIcon } from '@mantine/core';
import React from 'react';
import { FaExternalLinkAlt } from 'react-icons/fa';

const RenderDiacomLink = ({ cell }: CellRendererFunctionProps) => {
const RenderDicomLink = ({ cell }: CellRendererFunctionProps) => {
if (!cell?.getValue() || cell?.getValue() === '') {
return <span></span>;
} else
Expand All @@ -22,7 +22,7 @@ const RenderDiacomLink = ({ cell }: CellRendererFunctionProps) => {
export const registerCohortTableCustomCellRenderers = () => {
ExplorerTableCellRendererFactory().registerRenderer(
'link',
'DiacomLink',
RenderDiacomLink,
'DicomLink',
RenderDicomLink,
);
};

0 comments on commit 496e95e

Please sign in to comment.