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 {
1010 useSpace ,
1111 useSpaces ,
1212} from '@graphprotocol/hypergraph-react' ;
13+ import type { Entity } from '@graphprotocol/hypergraph' ;
1314import { useState } from 'react' ;
1415
1516import { Project } from '@/app/schema' ;
@@ -51,7 +52,7 @@ function PrivateSpace() {
5152 setProjectDescription ( '' ) ;
5253 } ;
5354
54- const publishToPublicSpace = async ( project : typeof Project ) => {
55+ const publishToPublicSpace = async ( project : Entity . Entity < typeof Project > ) => {
5556 if ( ! selectedSpace ) {
5657 alert ( 'No space selected' ) ;
5758 return ;
Original file line number Diff line number Diff line change @@ -51,28 +51,28 @@ export default function ExploreDappsPage() {
5151
5252 { dapp . description && < p className = "text-sm text-gray-600 mb-2 line-clamp-2" > { dapp . description } </ p > }
5353
54- { dapp . xUrl && (
54+ { dapp . x && (
5555 < a
56- href = { dapp . xUrl }
56+ href = { dapp . x }
5757 target = "_blank"
5858 rel = "noopener noreferrer"
5959 className = "text-sm text-blue-600 hover:text-blue-800 transition-colors duration-200 flex items-center gap-1"
6060 >
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" >
6262 < 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" />
6363 </ svg >
6464 View on X
6565 </ a >
6666 ) }
6767
68- { dapp . githubUrl && (
68+ { dapp . github && (
6969 < a
70- href = { dapp . githubUrl }
70+ href = { dapp . github }
7171 target = "_blank"
7272 rel = "noopener noreferrer"
7373 className = "text-sm text-blue-600 hover:text-blue-800 transition-colors duration-200 flex items-center gap-1"
7474 >
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" >
7676 < path d = "M12 2L2 22h20L12 2z" />
7777 </ svg >
7878 View on Github
@@ -88,7 +88,13 @@ export default function ExploreDappsPage() {
8888 { isPending === false && dapps . length === 0 && (
8989 < div className = "text-center py-16" >
9090 < 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+ >
9298 < path
9399 strokeLinecap = "round"
94100 strokeLinejoin = "round"
Original file line number Diff line number Diff line change @@ -192,8 +192,8 @@ export const mapping: Mapping.Mapping = {
192192 properties: {
193193 name: Id (' a126ca53-0c8e-48d5-b888-82c734c38935' ),
194194 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' ),
197197 },
198198 },
199199};
@@ -234,17 +234,13 @@ export default function DappsExample() {
234234 <p >Description: { dapp .description } </p >
235235 )}
236236 <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" >
243239 View on X
244240 </a >
245241 )}
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" >
248244 { ' ' }
249245 GitHub
250246 </a >
You can’t perform that action at this time.
0 commit comments