Skip to content

Commit

Permalink
ar(feat) [DPCP-38] [DPCP-39] [DPCP-46]: Abstract Views
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 5, 2024
1 parent 9d691ef commit c88ba41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/services/hypnos/[mode]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// page.tsx
import { DPPublicListings } from '@blocks/server';

export default function Home({ params }) {
const mode = params.mode || 'list';
export default function Home({ params }: any) {
const mode = params?.mode || 'list';
return (
<main>
<section>
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/rickmorty/[mode]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// page.tsx
import { DPRMList } from '@blocks/server';

export default function Home({ params }) {
const mode = params.mode || 'list';
export default function Home({ params }: any) {
const mode = params?.mode || 'list';
return (
<main>
<section>
Expand Down

0 comments on commit c88ba41

Please sign in to comment.