Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Chore] export LayerTypeListItem type (#2122)
Igor Dykhta31e44350007c
diff --git a/src/components/src/index.ts b/src/components/src/index.tsindex c61cacaf1..0d80fe4d5 100644--- a/src/components/src/index.ts+++ b/src/components/src/index.ts@@ -249,6 +249,8 @@ export type {StyledExportSectionProps} from './common';+export type {LayerTypeListItemType} from './side-panel/layer-panel/layer-type-list-item';+export {Icons,SelectText,diff --git a/src/components/src/side-panel/layer-panel/layer-type-list-item.tsx b/src/components/src/side-panel/layer-panel/layer-type-list-item.tsxindex 967fdfbe3..9bcf4b7a6 100644--- a/src/components/src/side-panel/layer-panel/layer-type-list-item.tsx+++ b/src/components/src/side-panel/layer-panel/layer-type-list-item.tsx@@ -31,9 +31,12 @@ type LayerTypeListItemProps = {label: string;};isTile: boolean;- theme: any;};+type WithThemeProps = LayerTypeListItemProps & {theme: Record<string, string>};++export type LayerTypeListItemType = React.FC<LayerTypeListItemProps>;+const StyledListItem = styled.div`&.list {display: flex;@@ -64,7 +67,7 @@ const StyledListItem = styled.div``;export function LayerTypeListItemFactory() {- const LayerTypeListItem: React.FC<LayerTypeListItemProps> = ({value, isTile, theme}) => (+ const LayerTypeListItem: React.FC<WithThemeProps> = ({value, isTile, theme}) => (<StyledListItemclassName={classNames('layer-type-selector__item__inner', {list: !isTile