Skip to content

Commit

Permalink
chore(react-date-picker-compat): adopt custom JSX pragma (microsoft#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus authored and marcosmoura committed Apr 25, 2023
1 parent 3022bd8 commit 76e493d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 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 @@ -37,6 +37,7 @@
"@fluentui/keyboard-keys": "^9.0.2",
"@fluentui/react-icons": "^2.0.196",
"@fluentui/react-input": "^9.4.10",
"@fluentui/react-jsx-runtime": "9.0.0-alpha.1",
"@fluentui/react-popover": "^9.5.9",
"@fluentui/react-portal": "^9.2.6",
"@fluentui/react-positioning": "^9.5.10",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
/** @jsxRuntime classic */
/** @jsxFrag React.Fragment */
/** @jsx createElement */

import * as React from 'react';
import { getSlots } from '@fluentui/react-utilities';
import { createElement } from '@fluentui/react-jsx-runtime';
import { Portal } from '@fluentui/react-portal';
import { getSlotsNext } from '@fluentui/react-utilities';
import type { CalendarProps } from '../Calendar/Calendar.types';
import type { DatePickerSlots, DatePickerState } from './DatePicker.types';

/**
* Render the final JSX of DatePicker
*/
export const renderDatePicker_unstable = (state: DatePickerState) => {
const { slots, slotProps } = getSlots<DatePickerSlots>(state);
const { slots, slotProps } = getSlotsNext<DatePickerSlots>(state);
const { inlinePopup } = state;

return (
Expand Down

0 comments on commit 76e493d

Please sign in to comment.