From 8784f541473e255ad7e986c0c92f7877cf38a22d Mon Sep 17 00:00:00 2001 From: Andrea Scartabelli Date: Wed, 8 May 2024 15:16:06 +0200 Subject: [PATCH] explorer: Remove HTML button instances and use the new Button component Resolves #1622 --- .../lib/components/__tests__/ListItem.spec.js | 1 - .../__snapshots__/BlockDetails.spec.js.snap | 8 ++- .../__snapshots__/Navbar.spec.js.snap | 27 ++++------ .../TransactionDetails.spec.js.snap | 8 ++- .../block-details/BlockDetails.svelte | 4 +- explorer/src/lib/components/navbar/Navbar.css | 6 --- .../src/lib/components/navbar/Navbar.svelte | 51 +++---------------- .../TransactionDetails.svelte | 4 +- .../__tests__/__snapshots__/page.spec.js.snap | 8 ++- .../__tests__/__snapshots__/page.spec.js.snap | 8 ++- 10 files changed, 51 insertions(+), 74 deletions(-) diff --git a/explorer/src/lib/components/__tests__/ListItem.spec.js b/explorer/src/lib/components/__tests__/ListItem.spec.js index 5cbc0e0073..98c72ef38b 100644 --- a/explorer/src/lib/components/__tests__/ListItem.spec.js +++ b/explorer/src/lib/components/__tests__/ListItem.spec.js @@ -3,7 +3,6 @@ import { cleanup, render } from "@testing-library/svelte"; import { ListItem } from "../"; const baseProps = { - tooltipId: "tooltipId", tooltipText: "Tooltip text", }; diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap index 4be8a7c2ac..ee8cb8047f 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlockDetails.spec.js.snap @@ -22,10 +22,16 @@ exports[`Block Details > renders the Block Details component 1`] = ` +
renders the Navbar component 1`] = ` +
renders the Transaction Details component 1`] = ` +
import { mdiArrowLeft, mdiArrowRight } from "@mdi/js"; import { AppAnchor, ListItem } from "$lib/components"; - import { Card, Icon, ProgressBar } from "$lib/dusk/components"; + import { Button, Card, Icon, ProgressBar } from "$lib/dusk/components"; import { createValueFormatter } from "$lib/dusk/value"; import { luxToDusk } from "$lib/dusk/currency"; import { @@ -45,7 +45,7 @@ - #{formatter(34526)} - +