Skip to content

Commit 79f3efc

Browse files
committed
fix: removed unused path on vite.config
1 parent d73e9a5 commit 79f3efc

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

src/api/statementsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export async function postNewStatement(statement: Statement): Promise<void> {
1919
const postData = await postResponse.json();
2020
console.log('Successfully posted:', postData);
2121

22-
// Optionally, if you want to fetch updated data after posting:
22+
// Optionally, fetch updated data after posting:
2323
const getResponse = await fetch(`${API_URL}/n/s/${statement.subject}`);
2424
if (!getResponse.ok) {
2525
throw new Error(`HTTP error on GET! status: ${getResponse.status}`);

src/components/statements/QuestionCard.tsx

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React from 'react';
44
import type { SetQuestion } from '../../../types/types';
55
import { HelpCircle, ChevronRight } from 'lucide-react';
66
import { cn } from '../../../lib/utils';
7+
import { Tooltip, TooltipTrigger, TooltipContent } from '../ui/tooltip';
78

89
export interface QuestionCardProps {
910
presetQuestion: SetQuestion;
@@ -19,13 +20,20 @@ const QuestionCard: React.FC<QuestionCardProps> = ({
1920
<div
2021
className={cn(
2122
'bg-white rounded-md p-3 shadow-sm flex items-center hover:bg-gray-100 transition-colors',
22-
'border-2 border-dotted border-brand-pink' // Thicker dotted border added here
23+
'border-2 border-dotted border-brand-pink'
2324
)}
2425
>
25-
{/* Icon indicating a preset question */}
26-
<span className='inline-flex items-center justify-center text-brand-pink mr-2'>
27-
<HelpCircle size={16} />
28-
</span>
26+
{/* Tooltip wrapped around the HelpCircle icon */}
27+
<Tooltip>
28+
<TooltipTrigger asChild>
29+
<span className='inline-flex items-center justify-center text-brand-pink mr-2'>
30+
<HelpCircle size={16} />
31+
</span>
32+
</TooltipTrigger>
33+
<TooltipContent className='p-2 bg-black text-white rounded'>
34+
Your employer would like to ask you this question.
35+
</TooltipContent>
36+
</Tooltip>
2937
{/* Main question text (truncated if too long) */}
3038
<span className='flex-1 truncate text-lg font-semibold'>
3139
{presetQuestion.mainQuestion}

types/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface SetQuestionStep {
4040
question: string;
4141
preset: boolean;
4242
presetAnswer: string | null;
43-
allowDescriptors: boolean;
43+
allowDescriptors?: boolean;
4444
}
4545

4646
export interface SetQuestion {

vite.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import * as path from 'path';
21
import { defineConfig } from 'vite';
32
import react from '@vitejs/plugin-react';
43

54
// https://vitejs.dev/config/
65
export default defineConfig({
76
base: '/',
87
plugins: [react()],
9-
resolve: {
10-
alias: {
11-
'@': path.resolve(__dirname, './src'),
12-
},
13-
},
8+
149
server: {
1510
port: 5000,
1611
},

0 commit comments

Comments
 (0)