Skip to content

Commit 5f940cd

Browse files
committed
Merge branch 'unit-details-panel' of https://github.com/UW-Macrostrat/web-components into unit-details-panel
2 parents 00f3c3f + 781b83b commit 5f940cd

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

packages/column-views/src/unit-details/panel.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,14 @@ function UnitDetailsContent({
255255
{
256256
label: "Stratigraphic name",
257257
},
258-
h("span",
259-
{
258+
h(
259+
"span",
260+
{
260261
className: "strat-name-id" + (onClickItem ? " clickable" : ""),
261-
onClick: (e) => onClickItem(e, {strat_name_id: unit.strat_name_id})
262-
},
263-
unit.strat_name_id),
262+
onClick: (e) => onClickItem(e, { strat_name_id: unit.strat_name_id }),
263+
},
264+
unit.strat_name_id,
265+
),
264266
),
265267
outcropField,
266268
h.if(features.has(UnitDetailsFeature.AdjacentUnits))([

packages/column-views/stories/unit-details.stories.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ function UnitDetailsExt({
3333

3434
return h(
3535
LithologiesProvider,
36-
h(UnitDetailsPanel, { onClickItem: (e, data) => console.log(data), unit, ...rest }),
36+
h(UnitDetailsPanel, {
37+
onClickItem: (e, data) => console.log(data),
38+
unit,
39+
...rest,
40+
}),
3741
);
3842
}
3943

0 commit comments

Comments
 (0)