Skip to content

Commit 2cf8d02

Browse files
AlexVOiceoverclaude
andcommitted
refactor: move ProgressWithFeedback to UI root folder
- Relocate ProgressWithFeedback from progress subfolder to the UI components directory - Update imports in UserDataModal to use the new path - Update barrel file to export ProgressWithFeedback directly - Remove unnecessary nested folder structure 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 8296302 commit 2cf8d02

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/components/modals/UserDataModal.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
'use client';
22

33
import React, { useState, useEffect, useRef } from 'react';
4-
import { useEntries } from '../../features/statements/hooks/useEntries';
5-
import { useAuth } from '../../features/auth/api/hooks';
6-
import { Button } from '../ui/button';
4+
import { useEntries } from '@/features/statements';
5+
import { useAuth } from '@/features/auth/api/hooks';
6+
import { Button } from '@/components/ui/Button';
77
import { Save, X, User, Mail, Award, Edit2, LogOut } from 'lucide-react';
8-
import { validateEmail } from '../../lib/utils/validateEmail';
9-
import QuestionCounter from '../ui/questionCounter/QuestionCounter';
10-
import ProgressWithFeedback from '../ui/progress/ProgressWithFeedback';
8+
import { validateEmail } from '@/lib/utils/validateEmail';
9+
import { QuestionCounter, ProgressWithFeedback } from '@/components/ui';
1110

1211
interface UserDataModalProps {
1312
onOpenChange: (open: boolean) => void;

src/components/ui/progress/ProgressWithFeedback.tsx renamed to src/components/ui/ProgressWithFeedback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { useAnsweredCount } from '@/features/questions/hooks/useAnsweredCount';
33
import { useProgressFeedback } from '@/hooks/useProgressFeedback';
4-
import LargeCircularQuestionCounter from '../questionCounter/LargeCircularQuestionCounter';
4+
import LargeCircularQuestionCounter from './questionCounter/LargeCircularQuestionCounter';
55

66
const ProgressWithFeedback: React.FC = () => {
77
const { answered, total } = useAnsweredCount();

src/components/ui/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,7 @@ export {
4141
// Export question counter components
4242
export { default as QuestionCounter } from './questionCounter/QuestionCounter';
4343
export { default as LargeCircularQuestionCounter } from './questionCounter/LargeCircularQuestionCounter';
44-
export { default as SmallCircularQuestionCounter } from './questionCounter/SmallCircularQuestionCounter';
44+
export { default as SmallCircularQuestionCounter } from './questionCounter/SmallCircularQuestionCounter';
45+
46+
// Export progress component
47+
export { default as ProgressWithFeedback } from './ProgressWithFeedback';

0 commit comments

Comments
 (0)