Skip to content

Commit

Permalink
chore(react-tabs): adopts custom JSX pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Apr 19, 2023
1 parent 9815f72 commit 3a74bad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "chore: adopts custom JSX pragma",
"packageName": "@fluentui/react-tabs",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions packages/react-components/react-tabs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
},
"dependencies": {
"@fluentui/react-context-selector": "^9.1.18",
"@fluentui/react-jsx-runtime": "9.0.0-alpha.1",
"@fluentui/react-shared-contexts": "^9.3.3",
"@fluentui/react-tabster": "^9.6.5",
"@fluentui/react-theme": "^9.1.7",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import * as React from 'react';
import { getSlots } from '@fluentui/react-utilities';
/** @jsxRuntime classic */
/** @jsx createElement */

import { createElement } from '@fluentui/react-jsx-runtime';
import { getSlotsNext } from '@fluentui/react-utilities';
import type { TabState, TabSlots } from './Tab.types';

/**
* Render the final JSX of Tab
*/
export const renderTab_unstable = (state: TabState) => {
const { slots, slotProps } = getSlots<TabSlots>(state);
const { slots, slotProps } = getSlotsNext<TabSlots>(state);

return (
<slots.root {...slotProps.root}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import * as React from 'react';
import { getSlots } from '@fluentui/react-utilities';
/** @jsxRuntime classic */
/** @jsx createElement */

import { createElement } from '@fluentui/react-jsx-runtime';
import { getSlotsNext } from '@fluentui/react-utilities';
import type { TabListState, TabListSlots, TabListContextValues } from './TabList.types';
import { TabListProvider } from './TabListContext';

/**
* Render the final JSX of TabList
*/
export const renderTabList_unstable = (state: TabListState, contextValues: TabListContextValues) => {
const { slots, slotProps } = getSlots<TabListSlots>(state);
const { slots, slotProps } = getSlotsNext<TabListSlots>(state);

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

0 comments on commit 3a74bad

Please sign in to comment.