Skip to content

Commit 878b122

Browse files
committed
build fix
1 parent 85de2c6 commit 878b122

File tree

12 files changed

+470
-383
lines changed

12 files changed

+470
-383
lines changed

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)/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}

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ const ListingComponent: React.FC<ListingProps> = ({
578578

579579
const MetadataContent = [
580580
{
581-
icon: Icons.calendar,
581+
icon: Icons.calendar as any,
582582
label: 'Date',
583583
value: formatDate(item.modified),
584584
tooltip: 'Date',
@@ -587,7 +587,7 @@ const ListingComponent: React.FC<ListingProps> = ({
587587

588588
if (item.download_count > 0) {
589589
MetadataContent.push({
590-
icon: Icons.download,
590+
icon: Icons.download as any,
591591
label: 'Download',
592592
value: item.download_count?.toString() || '0',
593593
tooltip: 'Download',
@@ -599,7 +599,7 @@ const ListingComponent: React.FC<ListingProps> = ({
599599
const geoDisplay = geographies.join(', ');
600600

601601
MetadataContent.push({
602-
icon: Icons.globe,
602+
icon: Icons.globe as any,
603603
label: 'Geography',
604604
value: geoDisplay,
605605
tooltip: geoDisplay,
@@ -613,7 +613,7 @@ const ListingComponent: React.FC<ListingProps> = ({
613613
.join(', ');
614614

615615
MetadataContent.push({
616-
icon: Icons.target,
616+
icon: Icons.target as any,
617617
label: 'SDG Goals',
618618
value: sdgDisplay,
619619
tooltip: sdgDisplay,
@@ -622,7 +622,7 @@ const ListingComponent: React.FC<ListingProps> = ({
622622

623623
if (item.has_charts && view === 'expanded') {
624624
MetadataContent.push({
625-
icon: Icons.chart,
625+
icon: Icons.chart as any,
626626
label: '',
627627
value: 'With Charts',
628628
tooltip: 'Charts',
@@ -631,21 +631,21 @@ const ListingComponent: React.FC<ListingProps> = ({
631631

632632
const FooterContent = [
633633
{
634-
icon: `/Sectors/${item.sectors?.[0]}.svg`,
634+
icon: `/Sectors/${item.sectors?.[0]}.svg` as any,
635635
label: 'Sectors',
636636
tooltip: `${item.sectors?.[0]}`,
637637
},
638638
...(item.has_charts && view !== 'expanded'
639639
? [
640640
{
641-
icon: `/chart-bar.svg`,
641+
icon: `/chart-bar.svg` as any,
642642
label: 'Charts',
643643
tooltip: 'Charts',
644644
},
645645
]
646646
: []),
647647
{
648-
icon: image,
648+
icon: image as any,
649649
label: 'Published by',
650650
tooltip: `${item.is_individual_dataset ? item.user?.name : item.organization?.name}`,
651651
},

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

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const UseCasesListingPage = () => {
9999

100100
return (
101101
<div className=" container pt-10 md:px-8 lg:pt-20">
102-
<div className="flex items-center flex-wrap justify-between gap-4 lg:gap-2 px-4 md:px-12 lg:px-12 ">
102+
<div className="flex flex-wrap items-center justify-between gap-4 px-4 md:px-12 lg:gap-2 lg:px-12 ">
103103
<div className="flex flex-col gap-2">
104104
<Text variant="headingXl">Recent UseCases</Text>
105105
<Text variant="bodyLg" fontWeight="medium">
@@ -148,31 +148,34 @@ const UseCasesListingPage = () => {
148148
href={`/usecases/${item.id}`}
149149
metadataContent={[
150150
{
151-
icon: Icons.calendar,
151+
icon: Icons.calendar as any,
152152
label: 'Date',
153153
value: formatDate(item.modified),
154154
},
155155
{
156-
icon: Icons.globe,
156+
icon: Icons.globe as any,
157157
label: 'Geography',
158-
value: item.geographies?.length > 0
159-
? item.geographies.map((geo: any) => geo.name).join(', ')
160-
: 'Not specified',
158+
value:
159+
item.geographies?.length > 0
160+
? item.geographies
161+
.map((geo: any) => geo.name)
162+
.join(', ')
163+
: 'Not specified',
161164
},
162165
]}
163166
footerContent={[
164167
{
165-
icon: `/Sectors/${item?.sectors[0]?.name}.svg`,
168+
icon: `/Sectors/${item?.sectors[0]?.name}.svg` as any,
166169
label: 'Sectors',
167170
},
168171
{
169172
icon: item.isIndividualUsecase
170-
? item?.user?.profilePicture
173+
? (item?.user?.profilePicture as any)
171174
? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${item.user.profilePicture.url}`
172175
: '/profile.png'
173176
: item?.organization?.logo
174177
? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${item.organization.logo.url}`
175-
: '/org.png',
178+
: ('/org.png' as any),
176179
label: 'Published by',
177180
},
178181
]}

app/[locale]/(user)/datasets/[datasetIdentifier]/components/SimilarDatasets/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,17 @@ const SimilarDatasets: React.FC = () => {
126126
description={item.description}
127127
metadataContent={[
128128
{
129-
icon: Icons.calendar,
129+
icon: Icons.calendar as any,
130130
label: 'Date',
131131
value: '19 July 2024',
132132
},
133133
{
134-
icon: Icons.download,
134+
icon: Icons.download as any,
135135
label: 'Download',
136136
value: item.downloadCount.toString(),
137137
},
138138
{
139-
icon: Icons.globe,
139+
icon: Icons.globe as any,
140140
label: 'Geography',
141141
value: item.geographies.join(', '),
142142
},
@@ -145,17 +145,17 @@ const SimilarDatasets: React.FC = () => {
145145
formats={item.formats}
146146
footerContent={[
147147
{
148-
icon: `/Sectors/${item.sectors[0]?.name}.svg`,
148+
icon: `/Sectors/${item.sectors[0]?.name}.svg` as any,
149149
label: 'Sectors',
150150
},
151151
{
152152
icon: item.isIndividualDataset
153-
? item?.user?.profilePicture
153+
? (item?.user?.profilePicture as any)
154154
? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${item.user.profilePicture.url}`
155-
: '/profile.png'
156-
: item?.organization?.logo
155+
: ('/profile.png' as any)
156+
: (item?.organization?.logo as any)
157157
? `${process.env.NEXT_PUBLIC_BACKEND_URL}/${item.organization.logo.url}`
158-
: '/org.png',
158+
: ('/org.png' as any),
159159
label: 'Published by',
160160
},
161161
]}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,17 @@ const Datasets = ({ type }: { type: 'organization' | 'Publisher' }) => {
155155
description={item.description}
156156
metadataContent={[
157157
{
158-
icon: Icons.calendar,
158+
icon: Icons.calendar as any,
159159
label: 'Date',
160160
value: '19 July 2024',
161161
},
162162
{
163-
icon: Icons.download,
163+
icon: Icons.download as any,
164164
label: 'Download',
165165
value: item.downloadCount.toString(),
166166
},
167167
{
168-
icon: Icons.globe,
168+
icon: Icons.globe as any,
169169
label: 'Geography',
170170
value: 'India',
171171
},

app/[locale]/(user)/publishers/components/UseCases.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ const UseCases = ({ type }: { type: 'organization' | 'Publisher' }) => {
152152
href={`/usecases/${item.id}`}
153153
metadataContent={[
154154
{
155-
icon: Icons.calendar,
155+
icon: Icons.calendar as any,
156156
label: 'Date',
157157
value: formatDate(item.modified),
158158
},
159159
{
160-
icon: Icons.globe,
160+
icon: Icons.globe as any,
161161
label: 'Geography',
162162
value: item.metadata?.find(
163163
(meta: any) => meta.metadataItem?.label === 'Geography'
@@ -166,7 +166,7 @@ const UseCases = ({ type }: { type: 'organization' | 'Publisher' }) => {
166166
]}
167167
footerContent={[
168168
{
169-
icon: `/Sectors/${item?.sectors[0]?.name}.svg`,
169+
icon: `/Sectors/${item?.sectors[0]?.name}.svg` as any,
170170
label: 'Sectors',
171171
},
172172
{

0 commit comments

Comments
 (0)