-
Notifications
You must be signed in to change notification settings - Fork 3
hide upload & download when bulk transactions selected #1069
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -275,14 +275,19 @@ export const BankTransactionsHeader = ({ | |||||
| </HStack> | ||||||
| )} | ||||||
| <TransactionsSearch slot='search' isDisabled={showBulkActions} /> | ||||||
| <HStack slot='download-upload' justify='center' gap='xs'> | ||||||
| <DownloadButton | ||||||
| downloadButtonTextOverride={stringOverrides?.downloadButton} | ||||||
| iconOnly={listView} | ||||||
| disabled={showBulkActions} | ||||||
| /> | ||||||
| <BankTransactionsHeaderMenu actions={headerMenuActions} isDisabled={showBulkActions} /> | ||||||
| </HStack> | ||||||
|
|
||||||
| {showBulkActions | ||||||
| ? null | ||||||
| : ( | ||||||
| <HStack slot='download-upload' justify='center' gap='xs'> | ||||||
| <DownloadButton | ||||||
| downloadButtonTextOverride={stringOverrides?.downloadButton} | ||||||
| iconOnly={listView} | ||||||
| disabled={showBulkActions} | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: The
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: src/components/BankTransactions/BankTransactionsHeader.tsx
Line: 286:286
Comment:
**style:** The `disabled={showBulkActions}` prop is redundant since this component won't render when `showBulkActions` is true
```suggestion
disabled={false}
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| /> | ||||||
| <BankTransactionsHeaderMenu actions={headerMenuActions} isDisabled={showBulkActions} /> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. style: The
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: src/components/BankTransactions/BankTransactionsHeader.tsx
Line: 288:288
Comment:
**style:** The `isDisabled={showBulkActions}` prop is redundant since this component won't render when `showBulkActions` is true
```suggestion
<BankTransactionsHeaderMenu actions={headerMenuActions} isDisabled={false} />
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| </HStack> | ||||||
| )} | ||||||
| </BankTransactionsActions> | ||||||
| </Header> | ||||||
| ) | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Use
{!showBulkActions && (...)}instead of ternary for cleaner conditional rendering when one branch is nullPrompt To Fix With AI