Skip to content

Commit

Permalink
EuiTitle fixed exported idents and refactored EuiTitleProps
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo committed Apr 11, 2019
1 parent 6e17948 commit 9283f4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/title/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { EuiTitle, EuiTitleSize, EuiTitleTextTransform } from './title';
export { EuiTitle, EuiTitleSize } from './title';
18 changes: 8 additions & 10 deletions src/components/title/title.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ const textTransformToClassNameMap = {
export const TEXT_TRANSFORM = keysOf(textTransformToClassNameMap);
export type EuiTitleTextTransform = keyof typeof textTransformToClassNameMap;

export type EuiTitleProps = FunctionComponent<
CommonProps & {
children: ReactElement<any>;
className?: string;
size?: EuiTitleSize;
textTransform?: EuiTitleTextTransform;
}
>;

export const EuiTitle: EuiTitleProps = ({
export type EuiTitleProps = CommonProps & {
children: ReactElement<any>;
className?: string;
size?: EuiTitleSize;
textTransform?: EuiTitleTextTransform;
};

export const EuiTitle: FunctionComponent<EuiTitleProps> = ({
size = 'm',
children,
className,
Expand Down

0 comments on commit 9283f4f

Please sign in to comment.