Parcourir la source

Updates FAST react wrapper

main
Keith Daulton il y a 2 ans
Parent
révision
a2c97bcae7
3 fichiers modifiés avec 12 ajouts et 5 suppressions
  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 Voir le fichier

@ -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 Voir le fichier

@ -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 Voir le fichier

@ -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',

Chargement…
Annuler
Enregistrer