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

NNS1-3486: adds ReportingTransactions component to orchestrate dateRange #6026

Merged
merged 2 commits into from
Dec 17, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<script lang="ts">
import { i18n } from "$lib/stores/i18n";
import type { ReportingDateRange } from "$lib/types/reporting";
import ReportingTransactionsButton from "./ReportingTransactionsButton.svelte";

// TODO: This will be hooked up in a follow up
// eslint-disable-next-line @typescript-eslint/no-unused-vars
let selectedRange: ReportingDateRange = "all";
</script>

<div class="wrapper">
<div>
<h3>{$i18n.reporting.transactions_title}</h3>
<p class="description">{$i18n.reporting.transactions_description}</p>
</div>
<ReportingTransactionsButton />
</div>

<style lang="scss">
.wrapper {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--padding-3x);
}
</style>
10 changes: 2 additions & 8 deletions frontend/src/lib/routes/Reporting.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import ReportingNeuronsButton from "$lib/components/reporting/ReportingNeuronsButton.svelte";
import ReportingTransactionsButton from "$lib/components/reporting/ReportingTransactionsButton.svelte";
import ReportingTransactions from "$lib/components/reporting/ReportingTransactions.svelte";
import Separator from "$lib/components/ui/Separator.svelte";
import { i18n } from "$lib/stores/i18n";
import { layoutTitleStore } from "$lib/stores/layout.store";
Expand Down Expand Up @@ -32,13 +32,7 @@

<Separator spacing="medium" />

<div class="wrapper">
<div>
<h3>{$i18n.reporting.transactions_title}</h3>
<p class="description">{$i18n.reporting.transactions_description}</p>
</div>
<ReportingTransactionsButton />
</div>
<ReportingTransactions />
</main>
</Island>

Expand Down
Loading