Skip to content

Commit

Permalink
chore(react-date-picker-compat): adopt custom JSX pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Apr 18, 2023
1 parent af59ca5 commit 694272e
Show file tree
Hide file tree
Showing 3 changed files with 15 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-datepicker-compat",
"email": "bernardo.sunderhus@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"dependencies": {
"@fluentui/react-theme": "^9.1.7",
"@fluentui/react-utilities": "^9.8.0",
"@fluentui/react-jsx-runtime": "9.0.0-alpha.1",
"@fluentui/keyboard-keys": "^9.0.2",
"@fluentui/react-field": "^9.1.0",
"@fluentui/react-icons": "^2.0.196",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as React from 'react';
/** @jsxRuntime classic */
/** @jsx createElement */

import { PopoverTrigger } from '@fluentui/react-popover';
import { getSlots } from '@fluentui/react-utilities';
import { createElement } from '@fluentui/react-jsx-runtime';

import { getSlotsNext } from '@fluentui/react-utilities';
import type { CalendarProps } from '../Calendar/Calendar.types';
import type { DatePickerSlots, DatePickerState } from './DatePicker.types';
import type { PopoverProps } from '@fluentui/react-popover';
Expand All @@ -9,7 +13,7 @@ import type { PopoverProps } from '@fluentui/react-popover';
* Render the final JSX of DatePicker
*/
export const renderDatePicker_unstable = (state: DatePickerState) => {
const { slots, slotProps } = getSlots<DatePickerSlots>(state);
const { slots, slotProps } = getSlotsNext<DatePickerSlots>(state);

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

0 comments on commit 694272e

Please sign in to comment.