diff options
author | Vitaly Takmazov | 2018-06-18 22:45:39 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 3b381577f839863eed5aea2c3bb76eaae8706f67 (patch) | |
tree | 8f714132ff1870ae392f1033a37354d9ec9d2d3a /vnext/src/components/Feeds.js | |
parent | 06403d9710daaebd642ad78c4ffce4a558a747ff (diff) |
tag feed
Diffstat (limited to 'vnext/src/components/Feeds.js')
-rw-r--r-- | vnext/src/components/Feeds.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index cf593b5e..b8367de4 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -18,6 +18,11 @@ export function Blog(props) { return (<Feed query={{ baseUrl: `https://api.juick.com/messages`, search: { uname: user }}} {...props} />) } +export function Tag(props) { + const { tag } = props.match.params; + return (<Feed query={{ baseUrl: `https://api.juick.com/messages`, search: { tag: tag } }} {...props} />) +} + class Feed extends React.Component { constructor(props) { super(props); @@ -75,6 +80,6 @@ Feed.propTypes = { msgs: PropTypes.array, query: PropTypes.shape({ baseUrl: PropTypes.string.isRequired, - search: PropTypes.array + search: PropTypes.object }) }; |