From 9283f4f8242ce3518604c3ebf8664e1a928ebf1e Mon Sep 17 00:00:00 2001 From: Theo Date: Thu, 11 Apr 2019 15:09:35 +0100 Subject: [PATCH] `EuiTitle` fixed exported idents and refactored `EuiTitleProps` --- src/components/title/index.ts | 2 +- src/components/title/title.tsx | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/title/index.ts b/src/components/title/index.ts index 76d490b4e9b7..95dc51209584 100644 --- a/src/components/title/index.ts +++ b/src/components/title/index.ts @@ -1 +1 @@ -export { EuiTitle, EuiTitleSize, EuiTitleTextTransform } from './title'; +export { EuiTitle, EuiTitleSize } from './title'; diff --git a/src/components/title/title.tsx b/src/components/title/title.tsx index 6345efd6c2e6..c4e05aecf4f5 100644 --- a/src/components/title/title.tsx +++ b/src/components/title/title.tsx @@ -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; - className?: string; - size?: EuiTitleSize; - textTransform?: EuiTitleTextTransform; - } ->; - -export const EuiTitle: EuiTitleProps = ({ +export type EuiTitleProps = CommonProps & { + children: ReactElement; + className?: string; + size?: EuiTitleSize; + textTransform?: EuiTitleTextTransform; +}; + +export const EuiTitle: FunctionComponent = ({ size = 'm', children, className,