diff --git a/explorer/CHANGELOG.md b/explorer/CHANGELOG.md index 9e7b7b447b..429de0df31 100644 --- a/explorer/CHANGELOG.md +++ b/explorer/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Add conditional rendering for layout changes based on screen size [#2061] - Add accessible name to the gas used progress bar [#2037] - Add accessible name to the nav bar button on mobile [#2036] - Implement warning for stale market data [#1892] @@ -39,6 +40,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#2037]: https://github.com/dusk-network/rusk/issues/2037 [#2039]: https://github.com/dusk-network/rusk/issues/2039 [#2056]: https://github.com/dusk-network/rusk/issues/2056 +[#2061]: https://github.com/dusk-network/rusk/issues/2061 diff --git a/explorer/src/lib/components/__tests__/BlocksCard.spec.js b/explorer/src/lib/components/__tests__/BlocksCard.spec.js index 7c752b643f..77731fcadd 100644 --- a/explorer/src/lib/components/__tests__/BlocksCard.spec.js +++ b/explorer/src/lib/components/__tests__/BlocksCard.spec.js @@ -4,7 +4,6 @@ import { compose, mapWith, take } from "lamb"; import { gqlBlocks } from "$lib/mock-data"; import { transformBlock } from "$lib/chain-info"; -import { appStore } from "$lib/stores"; import { BlocksCard } from ".."; describe("Blocks Card", () => { @@ -17,8 +16,8 @@ describe("Blocks Card", () => { const baseProps = { blocks: null, error: null, + isSmallScreen: false, loading: false, - appStore: appStore }; const baseOptions = { props: baseProps, diff --git a/explorer/src/lib/components/__tests__/TransactionsCard.spec.js b/explorer/src/lib/components/__tests__/TransactionsCard.spec.js index 56fcdcf580..e7f7bc10bb 100644 --- a/explorer/src/lib/components/__tests__/TransactionsCard.spec.js +++ b/explorer/src/lib/components/__tests__/TransactionsCard.spec.js @@ -4,7 +4,6 @@ import { compose, mapWith, take } from "lamb"; import { gqlTransactions } from "$lib/mock-data"; import { transformTransaction } from "$lib/chain-info"; -import { appStore } from "$lib/stores"; import { TransactionsCard } from ".."; @@ -17,9 +16,9 @@ describe("Transactions Card", () => { const baseProps = { error: null, + isSmallScreen: false, loading: false, txns: null, - appStore: appStore }; const baseOptions = { props: baseProps, diff --git a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap index b730965b42..df4f9f7f4e 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/BlocksCard.spec.js.snap @@ -745,36 +745,5 @@ exports[`Blocks Card > should render the \`BlocksCard\` component 1`] = ` - -`; - -exports[`Blocks Card > should render the \`BlocksCard\` component with the mobile layout 1`] = ` -