Revert "Use modal dialogs for expense creation & edition (#10)"

This reverts commit 1e66efe516.
This commit is contained in:
Sebastien Castiel
2023-12-19 09:44:09 -05:00
parent 1e66efe516
commit f881aff5f9
18 changed files with 316 additions and 628 deletions

View File

@@ -5,13 +5,12 @@ import { getGroup } from '@/lib/api'
import { Metadata } from 'next'
import Link from 'next/link'
import { notFound } from 'next/navigation'
import { PropsWithChildren, ReactNode } from 'react'
import { PropsWithChildren } from 'react'
type Props = {
params: {
groupId: string
}
modal: ReactNode
}
export async function generateMetadata({
@@ -29,7 +28,6 @@ export async function generateMetadata({
export default async function GroupLayout({
children,
modal,
params: { groupId },
}: PropsWithChildren<Props>) {
const group = await getGroup(groupId)
@@ -49,7 +47,6 @@ export default async function GroupLayout({
</div>
{children}
{modal}
<SaveGroupLocally group={{ id: group.id, name: group.name }} />
</>