From c7cc089b54799d43bc4baa17ae1cf6d11b0c76b0 Mon Sep 17 00:00:00 2001 From: ssandino Date: Thu, 2 Jan 2025 23:30:03 +0000 Subject: [PATCH] Prettified Code! --- .../(website)/survey/responses/page.tsx | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/website/src/app/[lang]/[region]/(website)/survey/responses/page.tsx b/website/src/app/[lang]/[region]/(website)/survey/responses/page.tsx index a3065b46d..cad891a5c 100644 --- a/website/src/app/[lang]/[region]/(website)/survey/responses/page.tsx +++ b/website/src/app/[lang]/[region]/(website)/survey/responses/page.tsx @@ -3,6 +3,7 @@ import BarchartSurveyResponseComponent, { ChartData, } from '@/app/[lang]/[region]/(website)/survey/responses/barchart-survey-response-component'; import { firestoreAdmin } from '@/firebase-admin'; +import { ClockIcon, ViewfinderCircleIcon } from '@heroicons/react/24/outline'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@radix-ui/react-tabs'; import { QuestionInputType } from '@socialincome/shared/src/types/question'; import { SurveyQuestionnaire } from '@socialincome/shared/src/types/survey'; @@ -18,7 +19,6 @@ import { Separator, Typography, } from '@socialincome/ui'; -import { ClockIcon, ViewfinderCircleIcon } from '@heroicons/react/24/outline'; import { Fragment } from 'react'; @@ -56,14 +56,13 @@ export default async function Page({ params: { lang } }: DefaultPageProps) { (surveyData) => surveyData && ( - - - + + {translator.t(`${surveyData.type}.title`)} - + {/* Viewfinder Icon */} - + {/* Data Points Text */} {surveyData.total} {translator.t('data-points')} @@ -101,17 +100,15 @@ export default async function Page({ params: { lang } }: DefaultPageProps) {
{/* Horizontal line */} -
+
{/* Dots container */}
{Array.from({ length: 11 }).map((_, index) => (
))} @@ -127,7 +124,9 @@ export default async function Page({ params: { lang } }: DefaultPageProps) { {translator.t(data[selectedSurvey][questionKey].question.translationKey)} {data[selectedSurvey][questionKey].question.type == QuestionInputType.CHECKBOX && ( - ({translator.t('multiple-answers')}) + + ({translator.t('multiple-answers')}) + )}