Skip to content

Commit

Permalink
EuiTitle code review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo committed Apr 11, 2019
1 parent 9486379 commit 9a87e23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/title/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const TITLE_SIZES = keysOf(titleSizeToClassNameMap);
export type EuiTitleSize = keyof typeof titleSizeToClassNameMap;

const textTransformToClassNameMap = {
none: '',
uppercase: 'euiTitle--uppercase',
};

Expand All @@ -33,13 +32,13 @@ export const EuiTitle: FunctionComponent<EuiTitleProps> = ({
size = 'm',
children,
className,
textTransform = 'none',
textTransform,
...rest
}) => {
const classes = classNames(
'euiTitle',
titleSizeToClassNameMap[size],
textTransformToClassNameMap[textTransform],
textTransform ? textTransformToClassNameMap[textTransform] : undefined,
className
);

Expand Down

0 comments on commit 9a87e23

Please sign in to comment.