Quellcode durchsuchen

Updates FAST react wrapper

main
Keith Daulton vor 2 Jahren
Ursprung
Commit
a2c97bcae7
3 geänderte Dateien mit 12 neuen und 5 gelöschten Zeilen
  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 Datei anzeigen

@ -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 Datei anzeigen

@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern