Skip to content

Commit 1abb135

Browse files
Merge pull request #345 from CivicDataLab/update/dependencies-dev
Updated Nextjs and other dependencies
2 parents d81698f + 878b122 commit 1abb135

File tree

52 files changed

+12224
-8489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+12224
-8489
lines changed

.eslintrc.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/[locale]/(user)/collaboratives/CollaborativesListingClient.tsx

Lines changed: 127 additions & 121 deletions
Large diffs are not rendered by default.

app/[locale]/(user)/collaboratives/[collaborativeSlug]/CollaborativeDetailsClient.tsx

Lines changed: 191 additions & 158 deletions
Large diffs are not rendered by default.

app/[locale]/(user)/collaboratives/[collaborativeSlug]/page.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ const CollaborativeInfoQuery = graphql(`
2626
export async function generateMetadata({
2727
params,
2828
}: {
29-
params: { collaborativeSlug: string };
29+
params: Promise<{ collaborativeSlug: string }>;
3030
}): Promise<Metadata> {
31+
const { collaborativeSlug } = await params;
3132
try {
32-
const data = await GraphQLPublic(CollaborativeInfoQuery, {}, { pk: params.collaborativeSlug });
33+
const data = await GraphQLPublic(
34+
CollaborativeInfoQuery,
35+
{},
36+
{ pk: collaborativeSlug }
37+
);
3338
const Collaborative = data?.collaborative;
3439

3540
return generatePageMetadata({
@@ -41,7 +46,7 @@ export async function generateMetadata({
4146
openGraph: {
4247
type: 'article',
4348
locale: 'en_US',
44-
url: `${process.env.NEXT_PUBLIC_PLATFORM_URL}/collaboratives/${params.collaborativeSlug}`,
49+
url: `${process.env.NEXT_PUBLIC_PLATFORM_URL}/collaboratives/${collaborativeSlug}`,
4550
title: `${Collaborative?.title} | Collaborative Data | CivicDataSpace`,
4651
description:
4752
Collaborative?.summary ||
@@ -59,7 +64,7 @@ export async function generateMetadata({
5964
openGraph: {
6065
type: 'article',
6166
locale: 'en_US',
62-
url: `${process.env.NEXT_PUBLIC_PLATFORM_URL}/collaboratives/${params.collaborativeSlug}`,
67+
url: `${process.env.NEXT_PUBLIC_PLATFORM_URL}/collaboratives/${collaborativeSlug}`,
6368
title: `Collaborative Details | CivicDataSpace`,
6469
description: `Explore open data and curated datasets in this collaborative.`,
6570
siteName: 'CivicDataSpace',

app/[locale]/(user)/components/Datasets.tsx

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,25 +100,29 @@ const Datasets = () => {
100100
description={item.description}
101101
metadataContent={[
102102
{
103-
icon: Icons.calendar,
103+
icon: Icons.calendar as any,
104104
label: 'Date',
105-
value: new Date(item.modified).toLocaleDateString('en-US', {
106-
day: 'numeric',
107-
month: 'long',
108-
year: 'numeric',
109-
}),
105+
value: new Date(item.modified).toLocaleDateString(
106+
'en-US',
107+
{
108+
day: 'numeric',
109+
month: 'long',
110+
year: 'numeric',
111+
}
112+
),
110113
},
111114
{
112-
icon: Icons.download,
115+
icon: Icons.download as any,
113116
label: 'Download',
114117
value: item.download_count.toString(),
115118
},
116119
{
117120
icon: Icons.globe,
118121
label: 'Geography',
119-
value: item.geographies?.length > 0
120-
? item.geographies.join(', ')
121-
: 'Not specified',
122+
value:
123+
item.geographies?.length > 0
124+
? item.geographies.join(', ')
125+
: 'Not specified',
122126
},
123127
]}
124128
tag={item.tags}

0 commit comments

Comments
 (0)