Skip to content

Commit 7e06642

Browse files
committed
chore: update component name
1 parent f2390f6 commit 7e06642

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/index.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,17 @@ import type {
88
ForwardRefExoticComponent,
99
RefAttributes,
1010
} from 'react';
11-
import GalleryImpl from './Gallery';
12-
import ImageViewerImpl from './ImageViewer';
11+
import GalleryComponent from './Gallery';
12+
import ImageViewerComponent from './ImageViewer';
1313

14-
const GalleryComponent: ForwardRefExoticComponent<
14+
const Gallery: ForwardRefExoticComponent<
1515
GalleryPropsType & RefAttributes<GalleryRefType>
16-
> = GalleryImpl;
17-
const ImageViewerComponent: ComponentType<ImageViewerPropsType> =
18-
ImageViewerImpl;
16+
> = GalleryComponent;
17+
const ImageViewer: ComponentType<ImageViewerPropsType> = ImageViewerComponent;
1918

2019
export type GalleryRef = GalleryRefType;
2120
export type GalleryProps = GalleryPropsType;
2221
export type ImageViewerProps = ImageViewerPropsType;
2322

24-
export { ImageViewerComponent as ImageViewer };
25-
export default GalleryComponent;
23+
export { ImageViewer };
24+
export default Gallery;

0 commit comments

Comments
 (0)