Kaynağa Gözat

Updates FAST react wrapper

main
Keith Daulton 2 yıl önce
ebeveyn
işleme
a2c97bcae7
3 değiştirilmiş dosya ile 12 ekleme ve 5 silme
  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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet