Skip to content

Commit 483310e

Browse files
kadoshmsMor Kadosh
and
Mor Kadosh
authored
docs: fix lit & react column sizing examples (#5562)
Co-authored-by: Mor Kadosh <[email protected]>
1 parent 56e3197 commit 483310e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

examples/lit/column-sizing/src/main.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,16 @@ class LitTableExample extends LitElement {
128128
)}
129129
</tbody>
130130
</table>
131-
<pre>123</pre>
131+
<pre>
132+
${JSON.stringify(
133+
{
134+
columnSizing: table.getState().columnSizing,
135+
columnSizingInfo: table.getState().columnSizingInfo,
136+
},
137+
null,
138+
2
139+
)}</pre
140+
>
132141
<style>
133142
* {
134143
font-family: sans-serif;

examples/react/column-sizing/src/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const defaultColumns: ColumnDef<Person>[] = [
101101
]
102102

103103
function App() {
104-
const [data, setData] = React.useState(() => [...defaultData])
104+
const [data] = React.useState(() => [...defaultData])
105105
const [columns] = React.useState<typeof defaultColumns>(() => [
106106
...defaultColumns,
107107
])

0 commit comments

Comments
 (0)