From 2872d6c1dd18b8b30201e18eb4c7408c35180271 Mon Sep 17 00:00:00 2001 From: BunyodL Date: Wed, 7 May 2025 21:48:17 +0500 Subject: [PATCH] fix: change review-form dialog-trigger btn --- src/features/review-form/ui/index.tsx | 24 +++++++----------------- src/pages-templates/about/index.tsx | 7 +++++-- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/src/features/review-form/ui/index.tsx b/src/features/review-form/ui/index.tsx index 07a96a0..dfa88e8 100644 --- a/src/features/review-form/ui/index.tsx +++ b/src/features/review-form/ui/index.tsx @@ -109,27 +109,17 @@ export function ReviewForm() { }; return ( -
+
- - - - - - - -

Добавить отзыв

-
-
+ + +
diff --git a/src/pages-templates/about/index.tsx b/src/pages-templates/about/index.tsx index d7c0167..a0259f1 100644 --- a/src/pages-templates/about/index.tsx +++ b/src/pages-templates/about/index.tsx @@ -7,6 +7,8 @@ import Link from 'next/link'; import { Reviews } from '@/app/api-utlities/@types'; import { AboutUsPageData } from '@/app/api-utlities/@types/pages'; +import { ReviewForm } from '@/features/review-form/ui'; + import AnimatedCounter from '@/shared/components/animated-counter'; import { Container } from '@/shared/components/container'; import { Rating } from '@/shared/components/rating'; @@ -18,7 +20,6 @@ import { Card, CardContent } from '@/shared/shadcn-ui/card'; import { CompanyTimeline } from '@/widgets/about-page/company-timeline'; import { StationGallery } from '@/widgets/about-page/station-gallery'; import { CtaSection } from '@/widgets/cta-section'; -import { ReviewForm } from '@/features/review-form/ui'; export interface AboutPageProps { content: AboutUsPageData; @@ -295,7 +296,9 @@ export default function AboutPage({ content }: AboutPageProps) { ))}
- +
+ +