Skip to content

Commit 14befcb

Browse files
committed
fix(): export unexported components
1 parent 1471a36 commit 14befcb

6 files changed

Lines changed: 14 additions & 6 deletions

File tree

src/components/Alert/Alert.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { IAlertStyles } from '../../theme/style-getters/getAlertStyles';
88
import { Spacing } from '../Layout';
99
import { Strong, Text } from '../Typography';
1010

11-
export interface IAlertProps {
11+
export interface AlertProps {
1212
theme: ITheme;
1313
title?: string;
1414
description?: string;
@@ -61,7 +61,7 @@ const resolveIcon = (intent: IntentType, theme: ITheme) => {
6161
}
6262
};
6363

64-
const AlertBase = (props: IAlertProps) => {
64+
const AlertBase = (props: AlertProps) => {
6565
const {
6666
title,
6767
description,

src/components/Alert/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as Alert, AlertProps } from './Alert';

src/components/Counter/Counter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ITheme, withTheme } from '../../theme';
66
import { ICounterStyles } from '../../theme/style-getters/getCounterStyles';
77
import { Spacing } from '../Layout';
88

9-
export interface ICounterProps {
9+
export interface CounterProps {
1010
theme: ITheme;
1111
count: number;
1212
/* custom component in place of count */
@@ -21,7 +21,7 @@ export interface ICounterProps {
2121
dangerouslySetInlineStyle?: Partial<ICounterStyles>;
2222
}
2323

24-
const CounterBase = (props: ICounterProps) => {
24+
const CounterBase = (props: CounterProps) => {
2525
const {
2626
count,
2727
component,

src/components/Counter/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { Counter } from './Counter';
1+
export { Counter, CounterProps } from './Counter';

src/components/Popover/Popover.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ class PopoverBase extends React.Component<IPopoverProps, PopoverState> {
239239
>
240240
{children}
241241
</LayoutMeasure>
242-
<Modal visible={isVisible} transparent onDismiss={onClose} isScrollable>
242+
<Modal
243+
visible={isVisible}
244+
transparent
245+
onRequestClose={onClose}
246+
isScrollable
247+
>
243248
<View
244249
style={{
245250
...modalContainerStyle,

src/components/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
export * from './Alert';
12
export * from './Avatar';
23
export * from './Badge';
34
export * from './Button';
45
export * from './Checkbox';
6+
export * from './Counter';
57
export * from './Dialog';
68
export * from './Divider';
79
export * from './FormField';

0 commit comments

Comments
 (0)