-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TransactionsImport): match contribution
- Loading branch information
Showing
34 changed files
with
1,564 additions
and
587 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
components/dashboard/sections/transactions-imports/FilterWithRawValueButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import type { LucideIcon } from 'lucide-react'; | ||
import { ALargeSmall, Filter } from 'lucide-react'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import { Button } from '../../../ui/Button'; | ||
import { Tooltip, TooltipContent, TooltipTrigger } from '../../../ui/Tooltip'; | ||
|
||
export function FilterWithRawValueButton({ | ||
SecondaryIcon = ALargeSmall, | ||
message, | ||
onClick, | ||
}: { | ||
SecondaryIcon?: LucideIcon; | ||
message?: React.ReactNode | string; | ||
onClick: () => void; | ||
}) { | ||
return ( | ||
<Tooltip delayDuration={0}> | ||
<TooltipTrigger asChild> | ||
<Button | ||
variant="ghost" | ||
size="icon-xs" | ||
className="relative inline-block h-4 w-4 p-0 text-neutral-500 hover:bg-white hover:text-neutral-700" | ||
onClick={onClick} | ||
> | ||
<Filter size={14} className="inline" /> | ||
{SecondaryIcon && ( | ||
<SecondaryIcon size={12} className="radius-50 absolute -bottom-1 -right-1 bg-white bg-opacity-50" /> | ||
)} | ||
</Button> | ||
</TooltipTrigger> | ||
<TooltipContent>{message || <FormattedMessage defaultMessage="Search term" id="UD/BhG" />}</TooltipContent> | ||
</Tooltip> | ||
); | ||
} |
Oops, something went wrong.