Implement the Create new Label button
This commit is contained in:
@ -44,3 +44,9 @@ export const labelColorObjects: LabelColorObjects = {
|
||||
background: '#D8D7D50D',
|
||||
},
|
||||
}
|
||||
|
||||
export const randomLabelColorHex = () => {
|
||||
const colorHexes = Object.keys(labelColorObjects).slice(0, -1)
|
||||
const randomColorHex = colorHexes[Math.floor(Math.random() * colorHexes.length)]
|
||||
return randomColorHex
|
||||
}
|
||||
Reference in New Issue
Block a user