Sfoglia il codice sorgente

Updates FAST react wrapper

main
Keith Daulton 2 anni fa
parent
commit
a2c97bcae7
3 ha cambiato i file con 12 aggiunte e 5 eliminazioni
  1. +6
    -0
      src/webviews/apps/shared/components/helpers/react-wrapper.ts
  2. +4
    -0
      src/webviews/apps/shared/components/overlays/react.tsx
  3. +2
    -5
      src/webviews/apps/shared/components/search/react.tsx

+ 6
- 0
src/webviews/apps/shared/components/helpers/react-wrapper.ts Vedi File

@ -0,0 +1,6 @@
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';
const { wrap } = provideReactWrapper(React);
export { wrap as reactWrapper };

+ 4
- 0
src/webviews/apps/shared/components/overlays/react.tsx Vedi File

@ -0,0 +1,4 @@
import { reactWrapper } from '../helpers/react-wrapper';
import { PopOver as PopOverComponent } from './pop-over';
export const PopOver = reactWrapper(PopOverComponent);

+ 2
- 5
src/webviews/apps/shared/components/search/react.tsx Vedi File

@ -1,10 +1,7 @@
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
import React from 'react';
import { reactWrapper } from '../helpers/react-wrapper';
import { SearchBox as searchBoxComponent } from './search-box';
const { wrap } = provideReactWrapper(React);
export const SearchBox = wrap(searchBoxComponent, {
export const SearchBox = reactWrapper(searchBoxComponent, {
events: {
onChange: 'change',
onNavigate: 'navigate',

Caricamento…
Annulla
Salva