Skip to content

Commit

Permalink
chore(react-data-grid-react-window): adopt custom JSX pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Apr 15, 2023
1 parent bb758eb commit a335944
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "chore: adopt custom JSX pragma",
"packageName": "@fluentui/react-data-grid-react-window",
"email": "bernardo.sunderhus@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"dependencies": {
"@fluentui/react-table": "^9.2.5",
"@fluentui/react-utilities": "^9.7.4",
"@fluentui/react-jsx-runtime": "^9.0.0-alpha.0",
"@swc/helpers": "^0.4.14",
"react-window": "^1.8.6"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import * as React from 'react';
/** @jsxRuntime classic */
/** @jsx createElement */

import { createElement } from '@fluentui/react-jsx-runtime';
import { getSlotsNext } from '@fluentui/react-utilities';
import type { DataGridBodyState, DataGridBodySlots } from './DataGridBody.types';
import { FixedSizeList as List, ListChildComponentProps } from 'react-window';
import { getSlots } from '@fluentui/react-utilities';
import { TableRowData, TableRowIdContextProvider } from '@fluentui/react-table';
import { TableRowIndexContextProvider } from '../../contexts/rowIndexContext';

/**
* Render the final JSX of DataGridVirtualizedBody
*/
export const renderDataGridBody_unstable = (state: DataGridBodyState) => {
const { slots, slotProps } = getSlots<DataGridBodySlots>(state);
const { slots, slotProps } = getSlotsNext<DataGridBodySlots>(state);

return (
<slots.root {...slotProps.root}>
Expand Down

0 comments on commit a335944

Please sign in to comment.