Explorar el Código

Updates FAST react wrapper

main
Keith Daulton hace 2 años
padre
commit
a2c97bcae7
Se han modificado 3 ficheros con 12 adiciones y 5 borrados
  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 Ver fichero

@ -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 Ver fichero

@ -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 Ver fichero

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

Cargando…
Cancelar
Guardar