From af579294baf44dd6535da888084110cebd01fc75 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 17 Feb 2025 12:36:30 +0300 Subject: [PATCH] fix header: center text (finally) --- apps/web/components/navigation/header/index.tsx | 5 ++--- apps/web/components/navigation/header/page-title.tsx | 7 ------- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 apps/web/components/navigation/header/page-title.tsx diff --git a/apps/web/components/navigation/header/index.tsx b/apps/web/components/navigation/header/index.tsx index 0d8864c..c665195 100644 --- a/apps/web/components/navigation/header/index.tsx +++ b/apps/web/components/navigation/header/index.tsx @@ -1,14 +1,13 @@ 'use client'; import { BackButton } from './back-button'; -import { PageTitle } from './page-title'; type Props = { title: string | undefined }; export function PageHeader(props: Readonly) { return ( -
+
- + {props.title}
); } diff --git a/apps/web/components/navigation/header/page-title.tsx b/apps/web/components/navigation/header/page-title.tsx deleted file mode 100644 index 3280301..0000000 --- a/apps/web/components/navigation/header/page-title.tsx +++ /dev/null @@ -1,7 +0,0 @@ -type Props = { readonly title: string | undefined }; - -export function PageTitle(props: Readonly) { - return ( - {props?.title} - ); -}