From 85ac2162bc2a713b80cd92c866e33aa199e4979c Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 22 Aug 2021 15:40:20 +0200 Subject: [PATCH] Refactor content page header --- components/{guide-header.tsx => content-page-header.tsx} | 2 +- pages/guides/[guide].tsx | 4 ++-- pages/watch/[video].jsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename components/{guide-header.tsx => content-page-header.tsx} (95%) diff --git a/components/guide-header.tsx b/components/content-page-header.tsx similarity index 95% rename from components/guide-header.tsx rename to components/content-page-header.tsx index c0b78ff2a..160e09bb1 100644 --- a/components/guide-header.tsx +++ b/components/content-page-header.tsx @@ -6,7 +6,7 @@ type GuideHeaderProps = { subtitle: string; }; -export function GuideHeader(props: GuideHeaderProps) { +export function ContentPageHeader(props: GuideHeaderProps) { const { title, subtitle } = props; return ( diff --git a/pages/guides/[guide].tsx b/pages/guides/[guide].tsx index e265a14af..af071a79f 100644 --- a/pages/guides/[guide].tsx +++ b/pages/guides/[guide].tsx @@ -3,7 +3,7 @@ import { GlobalHeader } from '../../components/global-header'; import { OpensourceBanner } from '../../components/opensource-banner'; import { UpdatesBanner } from '../../components/updates-banner'; import { Footer } from '../../components/footer'; -import { GuideHeader } from '../../components/guide-header'; +import { ContentPageHeader } from '../../components/content-page-header'; import MdRenderer from '../../components/md-renderer'; export default function Guide() { @@ -13,7 +13,7 @@ export default function Guide() { - diff --git a/pages/watch/[video].jsx b/pages/watch/[video].jsx index 11d2deb37..8ac0ebe9c 100644 --- a/pages/watch/[video].jsx +++ b/pages/watch/[video].jsx @@ -3,7 +3,7 @@ import { GlobalHeader } from '../../components/global-header'; import { OpensourceBanner } from '../../components/opensource-banner'; import { UpdatesBanner } from '../../components/updates-banner'; import { Footer } from '../../components/footer'; -import { GuideHeader } from '../../components/guide-header'; +import { ContentPageHeader } from '../../components/content-page-header'; import MdRenderer from '../../components/md-renderer'; export default function Video() { @@ -13,7 +13,7 @@ export default function Video() { -