feat(recipes): add CreateRecipeClient component for quick recipe import
refactor(recipes): integrate Navigation component into various recipe pages
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Metadata } from 'next';
|
||||
import Navigation from '../Navigation';
|
||||
import ImportTabsClient from './ImportTabsClient';
|
||||
|
||||
type Props = {
|
||||
@@ -14,5 +15,10 @@ export async function generateMetadata({ searchParams }: Props): Promise<Metadat
|
||||
export default async function ImportPage({ searchParams }: Props) {
|
||||
const { tab } = await searchParams;
|
||||
const activeTab = tab === 'recept' ? 'recept' : 'kvitto';
|
||||
return <ImportTabsClient activeTab={activeTab} />;
|
||||
return (
|
||||
<>
|
||||
<Navigation />
|
||||
<ImportTabsClient activeTab={activeTab} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user