mirror of
https://github.com/joinmarket-webui/jam.git
synced 2026-08-13 12:33:26 +02:00
chore(ui): colorize selected jar name
This commit is contained in:
parent
59dc044423
commit
2ebee2e8ee
3 changed files with 4 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import type { SessionResponse } from '@joinmarket-webui/joinmarket-ng-api-ts/jm'
|
||||
import type { ComponentProps } from 'react'
|
||||
import type { SessionResponse } from '@joinmarket-webui/joinmarket-ng-api-ts/jm'
|
||||
import { useMutation } from '@tanstack/react-query'
|
||||
import type { TFunction } from 'i18next'
|
||||
import { LockKeyholeIcon, LogOutIcon, PackageSearchIcon, SettingsIcon, ShuffleIcon, WalletIcon } from 'lucide-react'
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ export function Jar({
|
|||
<p
|
||||
className={cn(
|
||||
'text-muted-foreground',
|
||||
disabled ? [] : ['group-hover/jar:font-bold', `group-hover/jar:text-[${color}]`],
|
||||
!disabled && isSelected ? ['font-bold', `text-[${color}]`] : [],
|
||||
!disabled ? ['group-hover/jar:font-bold', `group-hover/jar:text-[${color}]`] : [],
|
||||
)}
|
||||
>
|
||||
{name}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ export const SelectableJar = ({
|
|||
tabIndex={-1}
|
||||
>
|
||||
<Jar
|
||||
className="flex-col gap-0"
|
||||
className="flex-col"
|
||||
name={name}
|
||||
color={color}
|
||||
totalBalance={totalBalance}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue