X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9fbb245286171bc55fed5b5104361a1869a1d76b..46751b9305a7e991d484494facd1f40790254d40:/src/components/details-attribute/details-attribute.tsx diff --git a/src/components/details-attribute/details-attribute.tsx b/src/components/details-attribute/details-attribute.tsx index dce08986..d255d14b 100644 --- a/src/components/details-attribute/details-attribute.tsx +++ b/src/components/details-attribute/details-attribute.tsx @@ -43,22 +43,27 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ interface DetailsAttributeDataProps { label: string; classLabel?: string; - value?: string | number; + value?: React.ReactNode; classValue?: string; lowercaseValue?: boolean; link?: string; children?: React.ReactNode; + onValueClick?: () => void; } type DetailsAttributeProps = DetailsAttributeDataProps & WithStyles; export const DetailsAttribute = withStyles(styles)( - ({ label, link, value, children, classes, classLabel, classValue, lowercaseValue }: DetailsAttributeProps) => + ({ label, link, value, children, classes, classLabel, classValue, lowercaseValue, onValueClick }: DetailsAttributeProps) => {label} { link ? {value} - : + : {value} {children} }