Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scastiel committed Oct 20, 2024
1 parent bdaf9b8 commit 5172f0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { BalancesList } from '@/app/groups/[groupId]/balances-list'
import { ReimbursementList } from '@/app/groups/[groupId]/reimbursement-list'
import { TrackPage } from '@/components/track-page'
import {
Card,
CardContent,
Expand Down Expand Up @@ -35,6 +36,7 @@ export default function BalancesAndReimbursements() {

return (
<>
<TrackPage path={`/groups/${groupId}/balances`} />
<Card className="mb-4">
<CardHeader>
<CardTitle>{t('title')}</CardTitle>
Expand Down
11 changes: 1 addition & 10 deletions src/app/groups/[groupId]/balances/page.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
import BalancesAndReimbursements from '@/app/groups/[groupId]/balances/balances-and-reimbursements'
import { TrackPage } from '@/components/track-page'
import { Metadata } from 'next'
import { useCurrentGroup } from '../current-group-context'

export const metadata: Metadata = {
title: 'Balances',
}

export default async function GroupPage() {
const { groupId } = useCurrentGroup()

return (
<>
<TrackPage path={`/groups/${groupId}/balances`} />
<BalancesAndReimbursements />
</>
)
return <BalancesAndReimbursements />
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function CreateFromReceiptButton() {
}

function ReceiptDialogContent() {
const { group } = useCurrentGroup()
const { group, groupId } = useCurrentGroup()
const { data: categoriesData } = trpc.categories.list.useQuery()
const categories = categoriesData?.categories

Expand Down

0 comments on commit 5172f0b

Please sign in to comment.