-
+
}>
diff --git a/src/pages/ArticlesDetailsPage/ui/ArticlesDetailsPage/ArticlesDetailsPage.tsx b/src/pages/ArticlesDetailsPage/ui/ArticlesDetailsPage/ArticlesDetailsPage.tsx
index 0b8b811..3aaf7b0 100644
--- a/src/pages/ArticlesDetailsPage/ui/ArticlesDetailsPage/ArticlesDetailsPage.tsx
+++ b/src/pages/ArticlesDetailsPage/ui/ArticlesDetailsPage/ArticlesDetailsPage.tsx
@@ -7,7 +7,6 @@ import {
} from '@/shared/lib/components/DynamicModuleLoared/DynamicModuleLoared';
import { ArticleRecommendationsList } from '@/features/articleRecommendationsList';
import { ArticleDetailsComments } from '../../ui/ArticleDetailsComments/ArticleDetailsComments';
-
import { articleDetailsPageReducer } from '../../model/slices';
import { ArticleRating } from '@/features/articleRating';
import { Page } from '@/widgets/Page';
diff --git a/src/shared/ui/deprecated/StarRating/StarRating.module.scss b/src/shared/ui/deprecated/StarRating/StarRating.module.scss
deleted file mode 100644
index ad9217d..0000000
--- a/src/shared/ui/deprecated/StarRating/StarRating.module.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-.StarIcon {
- cursor: pointer;
-}
-
-.normal {
- fill: none;
-}
-
-.hovered {
- fill: var(--primary-color);
-}
-
-.isSelected {
- cursor: auto;
-}
diff --git a/src/shared/ui/redesigned/StarRating/StarRating.module.scss b/src/shared/ui/redesigned/StarRating/StarRating.module.scss
new file mode 100644
index 0000000..141cbc9
--- /dev/null
+++ b/src/shared/ui/redesigned/StarRating/StarRating.module.scss
@@ -0,0 +1,21 @@
+.StarRating {
+ .normal {
+ fill: none;
+ }
+
+ .hovered {
+ fill: var(--icon-redesigned);
+ }
+}
+
+.normal {
+ fill: none;
+}
+
+.starIcon {
+ cursor: pointer;
+}
+
+.selected {
+ cursor: auto;
+}
diff --git a/src/shared/ui/deprecated/StarRating/StarRating.stories.tsx b/src/shared/ui/redesigned/StarRating/StarRating.stories.tsx
similarity index 100%
rename from src/shared/ui/deprecated/StarRating/StarRating.stories.tsx
rename to src/shared/ui/redesigned/StarRating/StarRating.stories.tsx
diff --git a/src/shared/ui/deprecated/StarRating/StarRating.tsx b/src/shared/ui/redesigned/StarRating/StarRating.tsx
similarity index 92%
rename from src/shared/ui/deprecated/StarRating/StarRating.tsx
rename to src/shared/ui/redesigned/StarRating/StarRating.tsx
index 6ec7671..62fb572 100644
--- a/src/shared/ui/deprecated/StarRating/StarRating.tsx
+++ b/src/shared/ui/redesigned/StarRating/StarRating.tsx
@@ -1,8 +1,8 @@
import { memo, useState } from 'react';
import { classNames } from '@/shared/lib/classNames/classNames';
import cls from './StarRating.module.scss';
-import { Icon } from '../Icon/Icon';
import StarIcon from '@/shared/assets/icons/star.svg';
+import { Icon } from '../Icon';
interface StarRatingProps {
className?: string;
@@ -38,10 +38,7 @@ export const StarRating = memo((props: StarRatingProps) => {
setIsSelected(true);
}
};
- /**
- * Устарел, используем новые компоненты из папки redesigned
- * @deprecated
- */
+
return (
{stars.map((starNumber) => (
@@ -64,6 +61,7 @@ export const StarRating = memo((props: StarRatingProps) => {
onClick={() => onClick(starNumber)}
data-testid={`StarRating.${starNumber}`}
data-selected={currentStarsCount >= starNumber}
+ clickable={!isSelected}
/>
))}
diff --git a/src/shared/ui/deprecated/StarRating/index.ts b/src/shared/ui/redesigned/StarRating/index.ts
similarity index 100%
rename from src/shared/ui/deprecated/StarRating/index.ts
rename to src/shared/ui/redesigned/StarRating/index.ts