diff --git a/packages/web/lib/networking/fragments/labelFragment.ts b/packages/web/lib/networking/fragments/labelFragment.ts index e15b0dce2..1cf2f88cd 100644 --- a/packages/web/lib/networking/fragments/labelFragment.ts +++ b/packages/web/lib/networking/fragments/labelFragment.ts @@ -7,7 +7,7 @@ export type LabelColor = | '#7BE4FF' | '#CE88EF' | '#EF8C43' - | 'custom color' + | '#000000' export const labelFragment = gql` fragment LabelFields on Label { diff --git a/packages/web/pages/settings/labels.tsx b/packages/web/pages/settings/labels.tsx index 70cd4e0c8..27127da6b 100644 --- a/packages/web/pages/settings/labels.tsx +++ b/packages/web/pages/settings/labels.tsx @@ -148,15 +148,16 @@ export default function LabelsPage(): JSX.Element { const { labels, revalidate } = useGetLabelsQuery() const [labelColorHex, setLabelColorHex] = useState({ rowId: '', - value: 'custom color', + value: '#000000', }) const [editingLabelId, setEditingLabelId] = useState(null) const [nameInputText, setNameInputText] = useState('') const [descriptionInputText, setDescriptionInputText] = useState('') const [isCreateMode, setIsCreateMode] = useState(false) const [windowWidth, setWindowWidth] = useState(0) - const [confirmRemoveLabelId, setConfirmRemoveLabelId] = - useState(null) + const [confirmRemoveLabelId, setConfirmRemoveLabelId] = useState< + string | null + >(null) const breakpoint = 768 applyStoredTheme(false) @@ -559,7 +560,10 @@ function GenericTableCard( alignment="center" css={{ ml: '16px', '@smDown': { ml: '0px' } }} > - + )} {showInput && !label ? ( @@ -632,7 +636,7 @@ function GenericTableCard( labelColorHexRowId={labelColorHex.rowId} labelColorHexValue={labelColorHex.value} labelId={label?.id || ''} - labelColor={label?.color || 'custom color'} + labelColor={label?.color || '#000000'} setLabelColorHex={setLabelColorHex} /> )} @@ -804,7 +808,7 @@ function MobileEditCard(props: any) { labelColorHexRowId={labelColorHex.rowId} labelColorHexValue={labelColorHex.value} labelId={label?.id || ''} - labelColor={label?.color || 'custom color'} + labelColor={label?.color || '#000000'} setLabelColorHex={setLabelColorHex} />