diff --git a/front-end/src/components/App/index.jsx b/front-end/src/components/App/index.jsx index 9f93afb..96fc5d9 100644 --- a/front-end/src/components/App/index.jsx +++ b/front-end/src/components/App/index.jsx @@ -1,7 +1,7 @@ import React from 'react' import { BrowserRouter, withRouter, Switch, Route } from 'react-router-dom' -import { Home, Register, Login, PrivateRoute, ChatRoom , Contributors } from '..' +import { Home, Register, Login, PrivateRoute, ChatRoom , Contributors , UserProfile } from '..' import QuizMcq from '../Quiz/mcq/quizMcq'; import '../../styles/index.css' @@ -13,6 +13,7 @@ const App = () => ( + diff --git a/front-end/src/components/UserProfile/BlogOrFavorite.jsx b/front-end/src/components/UserProfile/BlogOrFavorite.jsx new file mode 100644 index 0000000..db7d337 --- /dev/null +++ b/front-end/src/components/UserProfile/BlogOrFavorite.jsx @@ -0,0 +1,45 @@ +import React, { Component } from 'react' +import './index.scss' +import pinIcon from './assests/pin.png' +import dummyImg from './assests/dummy_image.png' +import heartImg from './assests/heartIcon.png' + +export class BlogOrFavorite extends Component { + render() { + return ( + +
  • +
    +
    + {this.props.view === "favorite" ? + + : + pinBlogPinned Blogs + } +
    + +
    +
    + dummy +
    +
    +
    + +
    +
    +