From dec912f2a588894c05288405259e1bbb9a37073e Mon Sep 17 00:00:00 2001 From: r-freeman Date: Fri, 17 Feb 2023 22:33:59 +0000 Subject: [PATCH] Added back button to article layout --- components/layouts/ArticleLayout.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/layouts/ArticleLayout.tsx b/components/layouts/ArticleLayout.tsx index 24725e3..eb39ac1 100644 --- a/components/layouts/ArticleLayout.tsx +++ b/components/layouts/ArticleLayout.tsx @@ -1,10 +1,12 @@ -import {ReactNode} from 'react' +import React, {ReactNode} from 'react' import Head from 'next/head' import {usePathname} from 'next/navigation' import {Container} from '@/components/Container' -import {formatDate} from '@/lib/formatDate' import {Prose} from '@/components/ui/Prose' import {Views} from '@/components/ui/Views' +import {ArrowDownIcon} from '@/components/icons/ArrowDownIcon' +import {formatDate} from '@/lib/formatDate' +import Link from 'next/link' type ArticleLayout = { children?: ReactNode @@ -88,6 +90,16 @@ export function ArticleLayout({
+ + +