Skip to content

Commit

Permalink
Replace onSelectionChange and id on List or Grid itself with onClick …
Browse files Browse the repository at this point in the history
…on item
  • Loading branch information
Exidex committed Sep 15, 2024
1 parent 29649aa commit 8c8ade8
Show file tree
Hide file tree
Showing 12 changed files with 134 additions and 264 deletions.
10 changes: 5 additions & 5 deletions dev_plugin/src/grid-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export default function GridView(): ReactElement {
const [val4, setValue4] = useStorage<string>("test", "");

return (
<Grid onSelectionChange={id => {}}>
<Grid>
{
numbers.map(value => (
<Grid.Item id={"id" + value} title={"Title " + value}>
<Grid.Item title={"Title " + value}>
<Grid.Item.Content>
<Grid.Item.Content.Paragraph>
Test Paragraph {value}
Expand All @@ -24,7 +24,7 @@ export default function GridView(): ReactElement {
))
}
<Grid.Section title="Section 1">
<Grid.Item id="id section 1 1" title="Title Section 1 1">
<Grid.Item title="Title Section 1 1">
<Grid.Item.Content>
<Grid.Item.Content.Paragraph>
Test Paragraph Section 1 1
Expand All @@ -33,14 +33,14 @@ export default function GridView(): ReactElement {
</Grid.Item>
</Grid.Section>
<Grid.Section title="Section 2">
<Grid.Item id="id section 2 1" title="Title Section 2 1">
<Grid.Item title="Title Section 2 1">
<Grid.Item.Content>
<Grid.Item.Content.Paragraph>
Test Paragraph Section 2 1
</Grid.Item.Content.Paragraph>
</Grid.Item.Content>
</Grid.Item>
<Grid.Item id="id section 2 2" title="Title Section 2 2">
<Grid.Item title="Title Section 2 2">
<Grid.Item.Content>
<Grid.Item.Content.Paragraph>
Test Paragraph Section 2 2
Expand Down
Loading

0 comments on commit 8c8ade8

Please sign in to comment.