From 4e5a6d727a79e4fff181628f63334d078a842ac9 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Thu, 3 Mar 2022 20:00:46 +0700 Subject: [PATCH] fixed semantic markup --- src/components/main/Footer/index.tsx | 4 ++-- src/components/node/NodeTitle/index.tsx | 4 ++-- src/containers/main/Header/index.tsx | 8 ++++---- src/containers/node/NodeBottomBlock/index.tsx | 16 +++++++++------- src/layouts/NodeLayout/index.tsx | 5 +++-- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/src/components/main/Footer/index.tsx b/src/components/main/Footer/index.tsx index 1ddddd96..505ed9b3 100644 --- a/src/components/main/Footer/index.tsx +++ b/src/components/main/Footer/index.tsx @@ -5,10 +5,10 @@ import styles from './styles.module.scss'; interface IProps {} const Footer: FC = memo(() => ( -
+
Уделяй больше времени тишине. Спасибо
2009 - {new Date().getFullYear()}
-
+ )); export { Footer }; diff --git a/src/components/node/NodeTitle/index.tsx b/src/components/node/NodeTitle/index.tsx index 38af78e7..876633b9 100644 --- a/src/components/node/NodeTitle/index.tsx +++ b/src/components/node/NodeTitle/index.tsx @@ -64,13 +64,13 @@ const NodeTitle: VFC = memo( {!!username && ( -
+
+ )} diff --git a/src/containers/main/Header/index.tsx b/src/containers/main/Header/index.tsx index 01a3bffe..009f2d84 100644 --- a/src/containers/main/Header/index.tsx +++ b/src/containers/main/Header/index.tsx @@ -60,7 +60,7 @@ const Header: FC = observer(() => { }, [top]); return ( -
+
@@ -68,7 +68,7 @@ const Header: FC = observer(() => { -
+
+ {isUser && } @@ -107,7 +107,7 @@ const Header: FC = observer(() => { )}
-
+
); }); diff --git a/src/containers/node/NodeBottomBlock/index.tsx b/src/containers/node/NodeBottomBlock/index.tsx index cb646da7..a2bbdc94 100644 --- a/src/containers/node/NodeBottomBlock/index.tsx +++ b/src/containers/node/NodeBottomBlock/index.tsx @@ -42,18 +42,20 @@ const NodeBottomBlock: FC = ({ commentsOrder }) => { {inline &&
{inline}
} - {isLoading || isLoadingComments || (!comments.length && !inline) ? ( - - ) : ( - - )} +
+ {isLoading || isLoadingComments || (!comments.length && !inline) ? ( + + ) : ( + + )} +
{isUser && !isLoading && ( )}
-
+
+ diff --git a/src/layouts/NodeLayout/index.tsx b/src/layouts/NodeLayout/index.tsx index e7b9c585..0e600c8b 100644 --- a/src/layouts/NodeLayout/index.tsx +++ b/src/layouts/NodeLayout/index.tsx @@ -16,7 +16,6 @@ import { useNodeContext } from '~/utils/context/NodeContextProvider'; import styles from './styles.module.scss'; - type IProps = {}; const NodeLayout: FC = () => { @@ -56,7 +55,9 @@ const NodeLayout: FC = () => { />
- +
+ +