The history view now takes the shared, persisted source filter as props (main's design), with the page narrowing per-account selections to the bank bucket for the history split. Removes the duplicate local type/state left by the rebase. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
1ccf7ab81f
commit
7a6f9dd167
@@ -37,7 +37,6 @@ import type {
|
||||
TransactionWithInvoice,
|
||||
ViewMode,
|
||||
CategorizeHandler,
|
||||
SourceFilter,
|
||||
} from '@/components/transactions/transaction-types'
|
||||
import type {
|
||||
SkattekontoTransactionWithSuggestion,
|
||||
@@ -2460,7 +2459,9 @@ export default function TransactionsPage() {
|
||||
transactions={transactions}
|
||||
skvRows={skvRows}
|
||||
searchTerm={searchTerm}
|
||||
sourceFilter={sourceFilter}
|
||||
sourceFilter={
|
||||
sourceFilter === 'all' || sourceFilter === 'skatteverket' ? sourceFilter : 'bank'
|
||||
}
|
||||
onSourceFilterChange={handleSourceFilterChange}
|
||||
jeUnderlagStatus={jeUnderlagStatus}
|
||||
onOpenMatchDialog={openMatchDialog}
|
||||
|
||||
@@ -157,7 +157,7 @@ export default function TransactionHistoryList({
|
||||
<div className="ml-auto">
|
||||
<ContextPicker
|
||||
value={sourceFilter}
|
||||
onChange={(id) => setSourceFilter(id as SourceFilter)}
|
||||
onChange={(id) => onSourceFilterChange(id as SourceFilter)}
|
||||
triggerLabel={
|
||||
sourceFilter === 'all'
|
||||
? t('source_all')
|
||||
|
||||
Reference in New Issue
Block a user