removed state vars from function params
This commit is contained in:
@@ -99,12 +99,6 @@ export default class Utils {
|
||||
|
||||
static getDayName(date: Date, locale: string) {
|
||||
return date.toLocaleDateString(locale, { weekday: 'long' });
|
||||
}
|
||||
|
||||
static generateRandomColor(): string {
|
||||
const randomNumber: number = Math.floor((Math.random() * 10000) + 1);
|
||||
const hue = randomNumber * 137.508; // use golden angle approximation
|
||||
return `hsl(${hue},100%,75%)`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user