From acc2e2009143c4b29a6b210a9a23262db2445d83 Mon Sep 17 00:00:00 2001 From: Phuoc Nguyen Date: Tue, 10 Dec 2019 18:47:50 +0700 Subject: [PATCH] Add github badge at corner --- client/layouts/DetailsLayout.tsx | 7 +++--- client/layouts/Github.tsx | 38 ++++++++++++++++++++++++++++++++ client/layouts/Layout.tsx | 12 ++++++---- 3 files changed, 49 insertions(+), 8 deletions(-) create mode 100644 client/layouts/Github.tsx diff --git a/client/layouts/DetailsLayout.tsx b/client/layouts/DetailsLayout.tsx index 2b83ad1..c7820eb 100644 --- a/client/layouts/DetailsLayout.tsx +++ b/client/layouts/DetailsLayout.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; import useDocumentTitle from '../hooks/useDocumentTitle'; -import Footer from './Footer'; +import Layout from './Layout'; import ProductHuntBadge from './ProductHuntBadge'; interface DetailsLayoutProps { @@ -13,7 +13,7 @@ const DetailsLayout: React.FC = ({ title, children }) => { useDocumentTitle(`CSS Layout ∙ ${title}`); return ( -
+
@@ -74,8 +74,7 @@ const DetailsLayout: React.FC = ({ title, children }) => { {children}
-