diff --git a/src/components/transactions/CSVUpload.tsx b/src/components/transactions/CSVUpload.tsx index 193d88d..25be4ba 100644 --- a/src/components/transactions/CSVUpload.tsx +++ b/src/components/transactions/CSVUpload.tsx @@ -1,7 +1,7 @@ import { useState } from "react"; import { Transaction } from "./Transaction"; import { Alert, Button, Form, Modal } from "react-bootstrap"; -import { writeNewTransactionsBatched } from "../../utils/firestore.ts"; +import { writeNewTransactionsBatched } from "../../utils/transaction.ts"; import { auth } from "../../utils/firebase"; export function CSVUpload({ show, setShow }: { show: boolean, setShow: React.Dispatch> }) { diff --git a/src/components/transactions/InputTransaction.tsx b/src/components/transactions/InputTransaction.tsx index f5485e4..27f97f6 100644 --- a/src/components/transactions/InputTransaction.tsx +++ b/src/components/transactions/InputTransaction.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import { Transaction, emojis, formatDate, formatTime } from "./Transaction"; import { Button, Modal, Form, Alert } from "react-bootstrap"; import { auth } from "../../utils/firebase"; -import { writeNewTransaction } from "../../utils/firestore.ts"; +import { writeNewTransaction } from "../../utils/transaction.ts"; export function InputTransaction({ show, setShow}: { show: boolean, setShow: React.Dispatch> }) { const [name, setName] = useState(""); diff --git a/src/components/transactions/Transaction.ts b/src/components/transactions/Transaction.ts index d9c1fa5..e70ad34 100644 --- a/src/components/transactions/Transaction.ts +++ b/src/components/transactions/Transaction.ts @@ -1,4 +1,4 @@ -import { Transaction as TransactionDocument } from "../../utils/firestore.ts"; +import { Transaction as TransactionDocument } from "../../utils/transaction.ts"; export const emojis: { [index: string]: string } = { "Income": "💸",