X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e13e7dd672160e4ab5569c24133f4f6032db4a9a..fb1ecf2421f8aac07d733d3bb56bb39312274f8c:/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 3888b04b67..32ab167182 100644 --- a/src/components/details-attribute/details-attribute.tsx +++ b/src/components/details-attribute/details-attribute.tsx @@ -8,7 +8,7 @@ import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/st import { ArvadosTheme } from '~/common/custom-theme'; import * as classnames from "classnames"; -type CssRules = 'attribute' | 'label' | 'value' | 'link'; +type CssRules = 'attribute' | 'label' | 'value' | 'lowercaseValue' | 'link'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ attribute: { @@ -26,6 +26,9 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ alignItems: 'flex-start', textTransform: 'capitalize' }, + lowercaseValue: { + textTransform: 'lowercase' + }, link: { width: '60%', color: theme.palette.primary.main, @@ -39,6 +42,7 @@ interface DetailsAttributeDataProps { classLabel?: string; value?: string | number; classValue?: string; + lowercaseValue?: boolean; link?: string; children?: React.ReactNode; } @@ -46,12 +50,12 @@ interface DetailsAttributeDataProps { type DetailsAttributeProps = DetailsAttributeDataProps & WithStyles; export const DetailsAttribute = withStyles(styles)( - ({ label, link, value, children, classes, classLabel, classValue }: DetailsAttributeProps) => + ({ label, link, value, children, classes, classLabel, classValue, lowercaseValue }: DetailsAttributeProps) => {label} { link ? {value} - : + : {value} {children} }