Related Feed Objects Widget
The Related Feed Objects Widget renders a list of related discussions.
This list is composed of feed object items containing the avatar and username of the author, the item content, the date of creation of the same and a "comment" button that allows users to browse to the item extended version.
The feed object items are shown in an orderly manner: few items are shown in the main card while the others can be displayed in a modal card by clicking on the "show more" button.
Usage
import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {RelatedFeedObjectsWidget} from '@selfcommunity/react-ui';
function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><RelatedFeedObjectsWidget /></SCContextProvider>
);
}