Download spectrum/src/views/channel/components/PostsFeed.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 943 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/channel/components/PostsFeed.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/channel/components/PostsFeed.js
-
curl -L -o PostsFeed.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/channel/components/PostsFeed.js
943 Bytes
| // @flow | |
| import React from 'react'; | |
| import compose from 'recompose/compose'; | |
| import type { GetChannelType } from 'shared/graphql/queries/channel/getChannel'; | |
| import type { UserInfoType } from 'shared/graphql/fragments/user/userInfo'; | |
| import getChannelThreads from 'shared/graphql/queries/channel/getChannelThreadConnection'; | |
| import ThreadFeed from 'src/components/threadFeed'; | |
| import { withCurrentUser } from 'src/components/withCurrentUser'; | |
| const ChannelThreadFeed = compose(getChannelThreads)(ThreadFeed); | |
| type Props = { | |
| channel: GetChannelType, | |
| currentUser: ?UserInfoType, | |
| }; | |
| export default withCurrentUser((props: Props) => { | |
| const { channel } = props; | |
| return ( | |
| <React.Fragment> | |
| <ChannelThreadFeed | |
| viewContext="channelProfile" | |
| slug={channel.slug} | |
| id={channel.id} | |
| setThreadsStatus={false} | |
| isNewAndOwned={false} | |
| channel={channel} | |
| /> | |
| </React.Fragment> | |
| ); | |
| }); | |