Skip to content

Commit

Permalink
BalanceMovementMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed May 7, 2024
1 parent b39efd8 commit d0291ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ import { BalanceMenu } from './BalanceMenu';
import { CoverMenu } from './CoverMenu';
import { TransferMenu } from './TransferMenu';

type BalancePopoverContentProps = {
type BalanceMovementMenuProps = {
categoryId: string;
month: string;
onBudgetAction: (month: string, action: string, arg?: unknown) => void;
onClose?: () => void;
};

export function BalancePopoverContent({
export function BalanceMovementMenu({
categoryId,
month,
onBudgetAction,
onClose = () => {},
}: BalancePopoverContentProps) {
}: BalanceMovementMenuProps) {
const catBalance = useSheetValue(rolloverBudget.catBalance(categoryId));
const [menu, setMenu] = useState('menu');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Row, Field, SheetCell } from '../../table';
import { BalanceWithCarryover } from '../BalanceWithCarryover';
import { makeAmountGrey } from '../util';

import { BalancePopoverContent } from './BalancePopoverContent';
import { BalanceMovementMenu } from './BalanceMovementMenu';
import { BudgetMenu } from './BudgetMenu';

const headerLabelStyle: CSSProperties = {
Expand Down Expand Up @@ -333,7 +333,7 @@ export const ExpenseCategoryMonth = memo(function ExpenseCategoryMonth({
onOpenChange={() => setBalanceMenuOpen(false)}
style={{ width: 200 }}
>
<BalancePopoverContent
<BalanceMovementMenu
categoryId={category.id}
month={month}
onBudgetAction={onBudgetAction}
Expand Down

0 comments on commit d0291ac

Please sign in to comment.