From b419db505b8cd5e7aa92043696f42a0d710d9226 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 8 Jun 2022 15:18:41 -0300 Subject: ui testing --- packages/anastasis-webui/src/stories.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'packages/anastasis-webui/src/stories.tsx') diff --git a/packages/anastasis-webui/src/stories.tsx b/packages/anastasis-webui/src/stories.tsx index a51dfb20f..351d6f37b 100644 --- a/packages/anastasis-webui/src/stories.tsx +++ b/packages/anastasis-webui/src/stories.tsx @@ -143,21 +143,24 @@ function ExampleList({ {k.examples.map((r) => { const e = encodeURIComponent; const eId = `${e(r.group)}-${e(r.component)}-${e(r.name)}`; + function doSelection(e: any): void { + e.preventDefault(); + location.hash = `#${eId}`; + onSelectStory(r, eId); + } const isSelected = selected && selected.component === r.component && selected.group === r.group && selected.name === r.name; return ( -
- { - e.preventDefault(); - location.hash = `#${eId}`; - onSelectStory(r, eId); - }} - > +
+ {r.name}
-- cgit v1.2.3