🎨 (Account) Add contrast color to all styled component

This commit is contained in:
Julien Calixte
2019-10-26 22:13:01 +02:00
parent 91c98651dd
commit 44aab53963
5 changed files with 83 additions and 34 deletions

View File

@@ -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
}