From adf44ff9378f3d5b93c6f708973b8e3b66917529 Mon Sep 17 00:00:00 2001 From: mddanishyusuf Date: Sat, 5 Oct 2019 17:42:08 +0530 Subject: [PATCH] add the webiste link --- README.md | 3 +++ components/Header.js | 2 +- pages/search.js | 30 +++++++++++++++++++++++++++--- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e3bc479..1bb3b44 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@

💡 :rocket:

+

+ Website: [https://dailyhack.xyz](https://dailyhack.xyz) +

It's a place where people share there daily hacks they use in their developments.
So, Do you have any hack?

diff --git a/components/Header.js b/components/Header.js index 87ccb3d..132be1d 100644 --- a/components/Header.js +++ b/components/Header.js @@ -22,7 +22,7 @@ const Header = (props) => {
  • BMC
  • GitHub
  • Twitter
  • -
  • Sitemap
  • + {/*
  • Sitemap
  • */} diff --git a/pages/search.js b/pages/search.js index c569dc0..8e15c6f 100644 --- a/pages/search.js +++ b/pages/search.js @@ -5,15 +5,39 @@ import axios from 'axios'; import Layout from '../components/Layout'; import HackCard from '../components/HackCard'; import PaginationBox from '../components/PaginationBox'; +import {withRouter} from 'next/router'; import SearchInput from '../components/SearchInput' import {GITHUB_ENDPOIINT_LOCAL, PER_PAGE, GITHUB_SEARCH_ENDPOIINT} from '../config/global' -function HackComponent(props){ +// function HackComponent(props){ +// return ( +//
    +// {props.issues.length > 0 ? props.issues.map(hack => ( +//
    +// +//
    +// )): 'No Result Found.'} +// +//
    +// ) +// } + +const HackComponent = withRouter(props=>{ return (
    {props.issues.length > 0 ? props.issues.map(hack => (
    - +
    )): 'No Result Found.'}
    ) -} +}) function SearchPage(props){