From e60138b1e51ea6bf4ec553419bb2fa5c4693feaf Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Jun 2018 00:50:43 +0300 Subject: Home feed and column fixes --- vnext/src/components/Feeds.js | 8 ++++++ vnext/src/index.js | 66 ++++++++++++++++++++----------------------- 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/vnext/src/components/Feeds.js b/vnext/src/components/Feeds.js index f0a3c523..0f12575f 100644 --- a/vnext/src/components/Feeds.js +++ b/vnext/src/components/Feeds.js @@ -47,6 +47,14 @@ export function Tag(props) { return () } +export function Home(props) { + const query = { + baseUrl: `https://api.juick.com/home`, + pageParam: 'before_mid' + }; + return () +} + class Feed extends React.Component { constructor(props) { super(props); diff --git a/vnext/src/index.js b/vnext/src/index.js index a7e439a4..e2090b78 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -2,7 +2,7 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom'; import Icon from './components/Icon'; -import { Discover, Discussions, Blog, Tag } from './components/Feeds'; +import { Discover, Discussions, Blog, Tag, Home } from './components/Feeds'; import Post from './components/Post'; import Thread from './components/Thread'; import LoginButton from './components/LoginButton'; @@ -120,6 +120,7 @@ class App extends React.Component {
} /> + } /> } /> } /> } /> @@ -128,10 +129,10 @@ class App extends React.Component {