Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add temporary banner related to 60-day transactions history limitation. #1365

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/assets/styles/explorer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,18 @@ hr.dotted {
--oruga-tooltip-content-weight-normal: 300;
}

//
// BANNER
//

.h-banner-link {
text-decoration: underline;
}

.h-banner-link:hover {
color: black
}

//
// ORUGA TABLES
//
Expand Down
7 changes: 7 additions & 0 deletions src/pages/AccountDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

<section :class="{'h-mobile-background': isTouchDevice || !isSmallScreen}" class="section">

<div v-if="temporaryBanner" class="hero is-small mb-5" style="background-color: var(--h-theme-highlight-color);">
<div class="hero-body h-is-property-text p-3" v-html="temporaryBanner"/>
</div>

<DashboardCard collapsible-key="accountDetails">
<template v-if="!isInactiveEvmAddress" v-slot:title>
<span class="h-is-primary-title">Account </span>
Expand Down Expand Up @@ -397,6 +401,8 @@ export default defineComponent({
},

setup(props) {
const temporaryBanner = import.meta.env.VITE_APP_TEMPORARY_BANNER ?? null

const isSmallScreen = inject('isSmallScreen', true)
const isMediumScreen = inject('isMediumScreen', true)
const isTouchDevice = inject('isTouchDevice', false)
Expand Down Expand Up @@ -539,6 +545,7 @@ export default defineComponent({
onBeforeUnmount(() => nameQuery.unmount())

return {
temporaryBanner,
isSmallScreen,
isMediumScreen,
isTouchDevice,
Expand Down
7 changes: 7 additions & 0 deletions src/pages/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

<section class="section" :class="{'h-mobile-background': isTouchDevice || !isSmallScreen}">

<div v-if="temporaryBanner" class="hero is-small mb-5" style="background-color: var(--h-theme-highlight-color);">
<div class="hero-body h-is-property-text p-3" v-html="temporaryBanner"/>
</div>

<DashboardCard>
<template v-slot:title>
<span class="h-is-primary-title">Recent Transactions</span>
Expand Down Expand Up @@ -80,6 +84,8 @@ export default defineComponent({
},

setup() {
const temporaryBanner = import.meta.env.VITE_APP_TEMPORARY_BANNER ?? null

const isSmallScreen = inject('isSmallScreen', true)
const isTouchDevice = inject('isTouchDevice', false)

Expand All @@ -102,6 +108,7 @@ export default defineComponent({
onBeforeUnmount(() => transactionTableController.unmount())

return {
temporaryBanner,
isSmallScreen,
isTouchDevice,
transactionTableController,
Expand Down