@portal-dx/plugin-medium-feed
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

@portal-dx/plugin-medium-feed

List the feed of a user on Backstage

This plugin was created through the Backstage CLI

Requirements

Use

On App.tsx:

import { MediumFeedProvider } from '@portal-dx/plugin-medium-feed'

[...]

export default app.createRoot(
<AppRouter>
  <MediumFeedProvider user="your-user-here">
    [...]
  </MediumFeedProvider>
<AppRouter />
);

On routes.tsx or Root.tsx:

packages/app/src/routes.tsx

import { MediumFeedPage } from '@portal-dx/plugin-medium-feed'

[...]

const routes = (
  <FlatRoutes>
    [...]
    <Route path="/medium" element={<MediumFeedPage />} />
  </FlatRoutes>
);

On HomePage.tsx or any other page:

packages/app/src/pages/HomePage.tsx

import { MediumFeedHomeWidget } from '@portal-dx/plugin-medium-feed';

 [...]

 export const HomePage = () => {

    return (

    [...]
    <Grid item xs={12} md={6}>
        <MediumFeedHomeWidget />
    </Grid>
    );
 };

Developed with ❤️ by the MadeiraMadeira DX Junior Team

Readme

Keywords

none

Package Sidebar

Install

npm i @portal-dx/plugin-medium-feed

Weekly Downloads

4

Version

1.0.7

License

Apache-2.0

Unpacked Size

46.9 kB

Total Files

18

Last publish

Collaborators

  • caiocarvalho
  • madeiramadeirabr