Новые изменения в компоенты
This commit is contained in:
parent
1838fd302d
commit
0c6c8fe4d8
7 changed files with 24 additions and 8 deletions
|
|
@ -21,6 +21,8 @@ const formatDate = (date: string) => {
|
|||
const year = new Date().getFullYear().toString().slice(-2);
|
||||
return `${day}/${month}/${year}`;
|
||||
};
|
||||
|
||||
const postsCountText = String(total);
|
||||
---
|
||||
|
||||
<Layout
|
||||
|
|
@ -41,7 +43,7 @@ const formatDate = (date: string) => {
|
|||
sideImage="/images/blog/blogImg.avif"
|
||||
sideImageAlt="Автоюрист Сургут"
|
||||
experienceBadge={{
|
||||
number: "50+",
|
||||
number: postsCountText,
|
||||
text: "ПОЛЕЗНЫХ СТАТЕЙ"
|
||||
}}
|
||||
bgImage="/images/blog/blogBg.avif"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue