fix: change review-form dialog-trigger btn

This commit is contained in:
BunyodL 2025-05-07 21:48:17 +05:00
parent 3e90019de2
commit 2872d6c1dd
2 changed files with 12 additions and 19 deletions

View File

@ -109,27 +109,17 @@ export function ReviewForm() {
};
return (
<div className='fixed right-6 bottom-6 z-50'>
<div>
<Dialog
open={openReviewFormDialog}
onOpenChange={setOpenReviewFormDialog}
>
<Tooltip>
<TooltipTrigger asChild>
<DialogTrigger asChild>
<Button
size='icon'
className='flex size-10 rounded-full shadow-lg transition-all duration-300 hover:scale-105 sm:size-14'
>
<Plus className='!size-5 sm:!size-6' />
<span className='sr-only'>Добавить отзыв</span>
<Button className='flex shadow-lg transition-all duration-300 hover:scale-105'>
<Plus />
<span>Добавить отзыв</span>
</Button>
</DialogTrigger>
</TooltipTrigger>
<TooltipContent>
<p>Добавить отзыв</p>
</TooltipContent>
</Tooltip>
<DialogContent className='overflow-hidden rounded-xl border-none bg-white/95 p-0 shadow-xl backdrop-blur-sm sm:max-w-[500px]'>
<div className='p-6'>
<DialogHeader className='pb-4'>

View File

@ -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) {
<Review key={review.id} review={review} />
))}
</div>
<div className='mt-4 flex w-full justify-end'>
<ReviewForm />
</div>
</Container>
<CtaSection />