Skip to content

Commit

Permalink
[Chore] Added collapsed prop for layer config group (#2255)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Jun 13, 2023
1 parent 8d79f7d commit 11242f0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -31,6 +31,7 @@ import {LayerVisConfig} from '@kepler.gl/types';
export type LayerConfigGroupLabelProps = {
label?: string;
description?: string;
collapsed?: boolean;
};

export type LayerConfigGroupProps = {
Expand Down Expand Up @@ -178,7 +179,7 @@ function LayerConfigGroupFactory(
return (
<StyledLayerConfigGroup className={classnames('layer-config-group', {collapsed, disabled})}>
<StyledConfigGroupHeader onClick={onToggleCollapsed}>
<LayerConfigGroupLabel label={label} description={description} />
<LayerConfigGroupLabel label={label} description={description} collapsed={collapsed} />
<StyledLayerConfigGroupAction className="layer-config-group__action">
{property ? (
<Switch
Expand Down

0 comments on commit 11242f0

Please sign in to comment.