Reorder unfurler routes to be alphabetic
This commit is contained in:
		
							parent
							
								
									93f547e446
								
							
						
					
					
						commit
						df51018599
					
				| @ -19,6 +19,13 @@ const routes = { | ||||
|     title: "Mempool Accelerator", | ||||
|     fallbackImg: '/resources/previews/accelerator.jpg', | ||||
|   }, | ||||
|   address: { | ||||
|     render: true, | ||||
|     params: 1, | ||||
|     getTitle(path) { | ||||
|       return `Address: ${path[0]}`; | ||||
|     } | ||||
|   }, | ||||
|   block: { | ||||
|     render: true, | ||||
|     params: 1, | ||||
| @ -40,26 +47,6 @@ const routes = { | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   address: { | ||||
|     render: true, | ||||
|     params: 1, | ||||
|     getTitle(path) { | ||||
|       return `Address: ${path[0]}`; | ||||
|     } | ||||
|   }, | ||||
|   tx: { | ||||
|     render: true, | ||||
|     params: 1, | ||||
|     getTitle(path) { | ||||
|       return `Transaction: ${path[0]}`; | ||||
|     }, | ||||
|     routes: { | ||||
|       push: { | ||||
|         title: "Push Transaction", | ||||
|         fallbackImg: '/resources/previews/tx-push.jpg', | ||||
|       } | ||||
|     } | ||||
|   }, | ||||
|   lightning: { | ||||
|     title: "Lightning", | ||||
|     fallbackImg: '/resources/previews/lightning.jpg', | ||||
| @ -127,6 +114,19 @@ const routes = { | ||||
|     title: "Trademark Policy", | ||||
|     fallbackImg: '/resources/previews/trademark-policy.jpg', | ||||
|   }, | ||||
|   tx: { | ||||
|     render: true, | ||||
|     params: 1, | ||||
|     getTitle(path) { | ||||
|       return `Transaction: ${path[0]}`; | ||||
|     }, | ||||
|     routes: { | ||||
|       push: { | ||||
|         title: "Push Transaction", | ||||
|         fallbackImg: '/resources/previews/tx-push.jpg', | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| }; | ||||
| 
 | ||||
| const networks = { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user