Compare commits

..

No commits in common. "aa14203357971f59456023a424d916d4774f3ad6" and "9daecf7cfb517457b33b6564fc9d0b0db923f14c" have entirely different histories.

View File

@ -94,13 +94,7 @@ const SelectDropdown = ({
};
export const ExpenseContext = createContext();
export const useExpenseContext = () => {
const context = useContext(ExpenseContext);
if (!context) {
throw new Error("useExpenseContext must be used within an ExpenseProvider");
}
return context;
}
export const useExpenseContext = () => useContext(ExpenseContext);
const ExpensePage = () => {
const [isOpen, setIsOpen] = useState(false);