diff --git a/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md b/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md index 063ff431f7..34d73cd241 100644 --- a/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md +++ b/Document-Processing/PDF/PDF-Viewer/react/depoyment-integration/share-point.md @@ -142,7 +142,9 @@ src/webparts/pdfViewer/components/PdfViewer.tsx Replace the entire file with the following: -```tsx +{% tabs %} +{% highlight ts tabtitle="Standalone" %} +{% raw %} import * as React from 'react'; import type { IPdfViewerProps } from './IPdfViewerProps'; @@ -191,7 +193,9 @@ export default class PdfViewer extends React.Component { ); } } -``` +{% endraw %} +{% endhighlight %} +{% endtabs %} Remember to replace `your-site.sharepoint.com/sites/PdfViewerDemo` in `resourceUrl` with the URL of your SharePoint site before serving the web part.