Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Fix broken links (#89)
Browse files Browse the repository at this point in the history
* Fix View All links

* Fix bock index block links
  • Loading branch information
fkrause98 authored Aug 11, 2023
1 parent a7c76b5 commit 8f25a0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/starknet_explorer_web/live/block_index_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule StarknetExplorerWeb.BlockIndexLive do
<div>
<div class="list-h">Number</div>
<%= live_redirect(to_string(block["block_number"]),
to: "/block/#{block["block_number"]}"
to: ~p"/#{@network}/block/#{block["block_hash"]}"
) %>
</div>
<div class="col-span-2">
Expand Down
10 changes: 8 additions & 2 deletions lib/starknet_explorer_web/live/pages/home/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ defmodule StarknetExplorerWeb.HomeLive.Index do
<div>
<div class="table-header">
<div class="table-title">Latest Blocks</div>
<a href="/blocks" class="text-gray-300 hover:text-white transition-all duration-300">
<a
href={~p"/#{@network}/blocks"}
class="text-gray-300 hover:text-white transition-all duration-300"
>
<div class="flex gap-2 items-center">
<div>View all blocks</div>
<img src={~p"/images/arrow-right.svg"} />
Expand Down Expand Up @@ -170,7 +173,10 @@ defmodule StarknetExplorerWeb.HomeLive.Index do
<div>
<div class="table-header">
<div class="table-title">Latest Transactions</div>
<a href="/transactions" class="text-gray-300 hover:text-white transition-all duration-300">
<a
href={~p"/#{@network}/transactions"}
class="text-gray-300 hover:text-white transition-all duration-300"
>
<div class="flex gap-2 items-center">
<div>View all transactions</div>
<img src={~p"/images/arrow-right.svg"} />
Expand Down

0 comments on commit 8f25a0f

Please sign in to comment.