File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed
app/explore-public-knowledge/dapps Expand file tree Collapse file tree 3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
useSpace ,
11
11
useSpaces ,
12
12
} from '@graphprotocol/hypergraph-react' ;
13
+ import type { Entity } from '@graphprotocol/hypergraph' ;
13
14
import { useState } from 'react' ;
14
15
15
16
import { Project } from '@/app/schema' ;
@@ -51,7 +52,7 @@ function PrivateSpace() {
51
52
setProjectDescription ( '' ) ;
52
53
} ;
53
54
54
- const publishToPublicSpace = async ( project : typeof Project ) => {
55
+ const publishToPublicSpace = async ( project : Entity . Entity < typeof Project > ) => {
55
56
if ( ! selectedSpace ) {
56
57
alert ( 'No space selected' ) ;
57
58
return ;
Original file line number Diff line number Diff line change @@ -51,28 +51,28 @@ export default function ExploreDappsPage() {
51
51
52
52
{ dapp . description && < p className = "text-sm text-gray-600 mb-2 line-clamp-2" > { dapp . description } </ p > }
53
53
54
- { dapp . xUrl && (
54
+ { dapp . x && (
55
55
< a
56
- href = { dapp . xUrl }
56
+ href = { dapp . x }
57
57
target = "_blank"
58
58
rel = "noopener noreferrer"
59
59
className = "text-sm text-blue-600 hover:text-blue-800 transition-colors duration-200 flex items-center gap-1"
60
60
>
61
- < svg className = "w-4 h-4" fill = "currentColor" viewBox = "0 0 24 24" >
61
+ < svg className = "w-4 h-4" fill = "currentColor" viewBox = "0 0 24 24" aria-hidden = "true" >
62
62
< path d = "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
63
63
</ svg >
64
64
View on X
65
65
</ a >
66
66
) }
67
67
68
- { dapp . githubUrl && (
68
+ { dapp . github && (
69
69
< a
70
- href = { dapp . githubUrl }
70
+ href = { dapp . github }
71
71
target = "_blank"
72
72
rel = "noopener noreferrer"
73
73
className = "text-sm text-blue-600 hover:text-blue-800 transition-colors duration-200 flex items-center gap-1"
74
74
>
75
- < svg className = "w-4 h-4" fill = "currentColor" viewBox = "0 0 24 24" >
75
+ < svg className = "w-4 h-4" fill = "currentColor" viewBox = "0 0 24 24" aria-hidden = "true" >
76
76
< path d = "M12 2L2 22h20L12 2z" />
77
77
</ svg >
78
78
View on Github
@@ -88,7 +88,13 @@ export default function ExploreDappsPage() {
88
88
{ isPending === false && dapps . length === 0 && (
89
89
< div className = "text-center py-16" >
90
90
< div className = "w-24 h-24 bg-gradient-to-br from-blue-100 to-purple-100 rounded-full flex items-center justify-center mx-auto mb-6" >
91
- < svg className = "w-12 h-12 text-blue-400" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
91
+ < svg
92
+ className = "w-12 h-12 text-blue-400"
93
+ fill = "none"
94
+ stroke = "currentColor"
95
+ viewBox = "0 0 24 24"
96
+ aria-hidden = "true"
97
+ >
92
98
< path
93
99
strokeLinecap = "round"
94
100
strokeLinejoin = "round"
Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ export const mapping: Mapping.Mapping = {
192
192
properties: {
193
193
name: Id (' a126ca53-0c8e-48d5-b888-82c734c38935' ),
194
194
description: Id (' 9b1f76ff-9711-404c-861e-59dc3fa7d037' ),
195
- xUrl : Id (' 0d625978-4b3c-4b57-a86f-de45c997c73c' ),
196
- githubUrl : Id (' 9eedefa8-60ae-4ac1-9a04-805054a4b094' ),
195
+ x : Id (' 0d625978-4b3c-4b57-a86f-de45c997c73c' ),
196
+ github : Id (' 9eedefa8-60ae-4ac1-9a04-805054a4b094' ),
197
197
},
198
198
},
199
199
};
@@ -234,17 +234,13 @@ export default function DappsExample() {
234
234
<p >Description: { dapp .description } </p >
235
235
)}
236
236
<div >
237
- { dapp .xUrl && (
238
- <a
239
- href = { dapp .xUrl }
240
- target = " _blank"
241
- rel = " noopener noreferrer"
242
- >
237
+ { dapp .x && (
238
+ <a href = { dapp .x } target = " _blank" rel = " noopener noreferrer" >
243
239
View on X
244
240
</a >
245
241
)}
246
- { dapp .githubUrl && (
247
- <a href = { dapp .githubUrl } target = " _blank" rel = " noopener noreferrer" >
242
+ { dapp .github && (
243
+ <a href = { dapp .github } target = " _blank" rel = " noopener noreferrer" >
248
244
{ ' ' }
249
245
GitHub
250
246
</a >
You can’t perform that action at this time.
0 commit comments