Skip to content

Commit

Permalink
fix references after i18n changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJohnston committed Aug 8, 2024
1 parent d43219c commit 90ca9bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/groups/[groupId]/activity/activity-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = {
activities: Activity[]
}

const DATE_GROUPS = {
export const DATE_GROUPS = {
TODAY: 'today',
YESTERDAY: 'yesterday',
EARLIER_THIS_WEEK: 'earlierThisWeek',
Expand Down
4 changes: 2 additions & 2 deletions src/components/expense-activity-item.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client'
import { getSummary } from '@/app/groups/[groupId]/activity/activity-item'
import { useSummary } from '@/app/groups/[groupId]/activity/activity-item'

Check failure on line 2 in src/components/expense-activity-item.tsx

View workflow job for this annotation

GitHub Actions / checks

Module '"@/app/groups/[groupId]/activity/activity-item"' declares 'useSummary' locally, but it is not exported.
import { Button } from '@/components/ui/button'
import { getExpense, getGroup } from '@/lib/api'
import { DateTimeStyle, cn, formatDate } from '@/lib/utils'
Expand All @@ -22,7 +22,7 @@ export function ExpenseActivityItem({
dateStyle,
}: Props) {
const router = useRouter()
const summary = getSummary(activity, participant?.name)
const summary = useSummary(activity, participant?.name)

return (
<div
Expand Down

0 comments on commit 90ca9bd

Please sign in to comment.