Skip to content

Commit faa3dac

Browse files
committed
fix: typescript errors
1 parent 0c5bf08 commit faa3dac

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Header.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const Header: React.FC = () => {
2828
</div>
2929
</DialogTrigger>
3030
<UserDataModal
31-
isOpen={isDashboardOpen}
3231
onOpenChange={setIsDashboardOpen}
3332
/>
3433
</Dialog>

src/components/UserDataModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@ import QuestionCounter from './ui/questionCounter/QuestionCounter';
1616
import LargeCircularQuestionCounter from './ui/questionCounter/LargeCircularQuestionCounter';
1717

1818
interface UserDataModalProps {
19-
isOpen: boolean;
2019
onOpenChange: (open: boolean) => void;
2120
}
2221

23-
const UserDataModal: React.FC<UserDataModalProps> = ({ isOpen, onOpenChange }) => {
22+
const UserDataModal: React.FC<UserDataModalProps> = ({ onOpenChange }) => {
2423
const { data, setData } = useEntries();
2524
const [isEditingContact, setIsEditingContact] = useState(false);
2625
const [managerEmailInput, setManagerEmailInput] = useState(

src/components/statementWizard/StatementPreview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ import { getVerbName } from '../../../utils/verbUtils';
44
import { MailPlus, MailX, FileText } from 'lucide-react';
55

66
interface StatementPreviewProps {
7-
selection: Entry;
7+
selection: Entry & {
8+
currentStep?: Step;
9+
};
810
}
911

1012
const StatementPreview: React.FC<StatementPreviewProps> = ({ selection }) => {
1113
const { subject, verb, object, adverbial } = selection.atoms;
1214
const { isPublic } = selection;
1315

1416
// Get the current step from the wizard
15-
const currentStep = selection.currentStep as Step | undefined;
17+
const currentStep = selection.currentStep;
1618

1719
// Only show the preview if we have at least a subject
1820
const hasContent = Boolean(subject.trim());

0 commit comments

Comments
 (0)