Skip to content

Commit

Permalink
docs: fix lit & react column sizing examples (#5562)
Browse files Browse the repository at this point in the history
Co-authored-by: Mor Kadosh <mkadosh@paloaltonetworks.com>
  • Loading branch information
kadoshms and Mor Kadosh committed May 17, 2024
1 parent 56e3197 commit 483310e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion examples/lit/column-sizing/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,16 @@ class LitTableExample extends LitElement {
)}
</tbody>
</table>
<pre>123</pre>
<pre>
${JSON.stringify(
{
columnSizing: table.getState().columnSizing,
columnSizingInfo: table.getState().columnSizingInfo,
},
null,
2
)}</pre
>
<style>
* {
font-family: sans-serif;
Expand Down
2 changes: 1 addition & 1 deletion examples/react/column-sizing/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const defaultColumns: ColumnDef<Person>[] = [
]

function App() {
const [data, setData] = React.useState(() => [...defaultData])
const [data] = React.useState(() => [...defaultData])
const [columns] = React.useState<typeof defaultColumns>(() => [
...defaultColumns,
])
Expand Down

0 comments on commit 483310e

Please sign in to comment.