Remove extra vars

This commit is contained in:
Jackson Harper 2022-04-05 14:11:12 -07:00
parent cdc7d62581
commit 3bb72629af

View file

@ -402,14 +402,10 @@ function GenericTableCard(props: GenericTableCardProps & { isLastChild?: boolean
} = props
const colorObject =
labelColorObjects[label?.color || ''] || labelColorObjects['custom color']
const { text, border, background } = colorObject
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'
const iconColor = isDarkTheme() ? '#D8D7D5': '#5F5E58'
const handleEdit = () => {
editingLabelId && updateLabel(editingLabelId)