style: general tweaking
This commit is contained in:
8
utils/getRandomColor.ts
Normal file
8
utils/getRandomColor.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export function getRandomColor() {
|
||||
const letters = '6789ABCDEF';
|
||||
let color = '#';
|
||||
for (let i = 0; i < 6; i++) {
|
||||
color += letters[Math.floor(Math.random() * 10)];
|
||||
}
|
||||
return color;
|
||||
}
|
||||
Reference in New Issue
Block a user