Skip to content

Commit 5cea40d

Browse files
committed
fix compliation errors
1 parent 7969490 commit 5cea40d

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/components/BonusIncomeSection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import type { FormData } from '../types';
33
import { TrashIcon, PlusIcon } from './Icons';
4-
import { StateSelector } from './StateSelector';
54

65
interface BonusIncomeSectionProps {
76
formData: FormData;

src/components/IncomeAllocationCalendar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ export const IncomeAllocationCalendar: React.FC<IncomeAllocationCalendarProps> =
9898

9999
// Add any bonuses for this specific date
100100
formData.bonuses.forEach(bonus => {
101-
const bonusDate = new Date(bonus.date + 'T00:00:00');
102-
103101
if (bonus.type === 'sign-on') {
104102
// Sign-on bonuses appear only on the date received
105103
if (bonus.date === dateStr) {

src/config.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// Configuration constants for the tax calculator
22
import { stateTaxConfigs } from './stateTaxData';
3+
import type { FormData } from './types';
34

45
export const CLIENT_ID = '158815926301-2e46taooqll1firpnkq04ajlt9mmaq6o.apps.googleusercontent.com';
56
export const DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"];
67
export const SCOPES = "https://www.googleapis.com/auth/calendar.readonly";
78
export const LOCAL_STORAGE_KEY = 'payAllocatorData_React';
89

9-
export const exampleData = {
10+
export const exampleData: FormData = {
1011
primaryState: "MN",
1112
visitingDates: { start: "2025-01-01", end: "2025-05-31" },
1213
daysInOtherStates: { "FL": ["2025-01-16", "2025-01-17", "2025-02-10"], "AZ": [] },
@@ -15,9 +16,9 @@ export const exampleData = {
1516
{ id: 2, netPay: 8650.00, payPeriodStart: "2025-02-01", payPeriodEnd: "2025-02-15" }
1617
],
1718
bonuses: [
18-
{ id: 1, amount: 1000, state: "MN", date: "2025-01-20" },
19-
{ id: 2, amount: 250, state: "FL", date: "2025-01-30" },
20-
{ id: 3, amount: 1200, state: "FL", date: "2025-02-14" }
19+
{ id: 1, amount: 1000, state: "MN", date: "2025-01-20", type: "services-rendered" },
20+
{ id: 2, amount: 250, state: "FL", date: "2025-01-30", type: "sign-on" },
21+
{ id: 3, amount: 1200, state: "FL", date: "2025-02-14", type: "services-rendered" }
2122
]
2223
};
2324

0 commit comments

Comments
 (0)