diff --git a/package.json b/package.json index 3cf1c55..a90e15b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-react-typescript-starter", "private": true, - "version": "1.1.2", + "version": "1.1.3", "type": "module", "scripts": { "dev": "vite", diff --git a/src/components/ArticleList.tsx b/src/components/ArticleList.tsx index d4fc594..d6fc4b2 100644 --- a/src/components/ArticleList.tsx +++ b/src/components/ArticleList.tsx @@ -194,7 +194,7 @@ export const ArticleList = React.memo(function ArticleList({ className="inline-flex items-center px-3 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50" > - Новая статья + Новая )} @@ -225,7 +225,12 @@ export const ArticleList = React.memo(function ArticleList({

{article.title}

· {CategoryTitles[article.categoryId]} · {CityTitles[article.cityId]} · {article.readTime}{' '} - чтения + ·{' '} + {new Date(article.publishedAt).toLocaleDateString('ru-RU', { + month: 'long', + day: 'numeric', + year: 'numeric', + })}

{(() => { const writerAuthors = article.authors