Skip to content

Commit

Permalink
[chore] Add className for LayerManager (#2629)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta authored Sep 12, 2024
1 parent 6f45f1f commit 5d77b7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/src/side-panel/layer-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {Datasets} from '@kepler.gl/table';
type LayerBlendingSelectorProps = {
layerBlending: string;
updateLayerBlending: ActionHandler<typeof VisStateActions.updateLayerBlending>;
className?: string;
} & WrappedComponentProps;

type OverlayBlendingSelectorProps = {
Expand Down Expand Up @@ -55,7 +56,7 @@ type LayerManagerProps = {
} & WrappedComponentProps;

export const LayerBlendingSelector = React.memo(
({layerBlending, updateLayerBlending, intl}: LayerBlendingSelectorProps) => {
({layerBlending, updateLayerBlending, intl, className}: LayerBlendingSelectorProps) => {
const labeledLayerBlendings = Object.keys(LAYER_BLENDINGS).reduce(
(acc, current) => ({
...acc,
Expand All @@ -70,7 +71,7 @@ export const LayerBlendingSelector = React.memo(
);

return (
<SidePanelSection>
<SidePanelSection className={className}>
<PanelLabel>
<FormattedMessage id="layerBlending.title" />
</PanelLabel>
Expand Down

0 comments on commit 5d77b7a

Please sign in to comment.