🎨 (Account) Add contrast color to all styled component
This commit is contained in:
@@ -40,7 +40,7 @@ export const slug = (text: string): string => {
|
||||
.replace(/-+$/, '') // Trim - from end of text
|
||||
}
|
||||
|
||||
export const findContrastColor = (value: string): string | null => {
|
||||
export const findContrastColor = (value: string | null): string | null => {
|
||||
if (!value) {
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user