mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update colours when changing values
This commit is contained in:
parent
6d5159bc80
commit
cdc7d62581
1 changed files with 2 additions and 1 deletions
|
|
@ -406,6 +406,7 @@ function GenericTableCard(props: GenericTableCardProps & { isLastChild?: boolean
|
|||
const showInput =
|
||||
editingLabelId === label?.id || (isCreateMode && !label)
|
||||
const labelName = label?.name || nameInputText
|
||||
const labelColor = editingLabelId === label?.id ? labelColorHex.value : label?.color
|
||||
|
||||
const isDarkMode = isDarkTheme()
|
||||
const iconColor = isDarkMode ? '#D8D7D5': '#5F5E58'
|
||||
|
|
@ -514,7 +515,7 @@ function GenericTableCard(props: GenericTableCardProps & { isLastChild?: boolean
|
|||
>
|
||||
{(showInput && !label) ? null : (
|
||||
<HStack alignment="center" css={{ ml: '16px' }}>
|
||||
<LabelChip color={label?.color || ''} text={label?.name || ''} />
|
||||
<LabelChip color={labelColor || ''} text={label?.name || ''} />
|
||||
</HStack>
|
||||
)}
|
||||
{(showInput && !label) ? (
|
||||
|
|
|
|||
Loading…
Reference in a new issue