@krowdy-ui/assets
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -26,3 +26,8 @@ import { useTheme } from '@krowdy-ui/core'; | ||
{ | ||
colorCustom = theme.palette.custom.main; | ||
if (theme.palette.custom && theme.palette.custom.main) { | ||
colorCustom = theme.palette.custom.main; | ||
break; | ||
} | ||
if (!color) colorCustom = theme.palette.primary.main; | ||
break; | ||
@@ -39,3 +44,3 @@ } | ||
return colorCustom; | ||
}, [color, theme.palette.primary.main, theme.palette.secondary.main, theme.palette.custom.main]); | ||
}, [color, theme.palette]); | ||
return colorCustom; | ||
@@ -42,0 +47,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
/** @license Krowdy-UI v0.0.1 | ||
/** @license Krowdy-UI v0.0.2 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
@@ -25,3 +25,8 @@ import { useTheme } from '@krowdy-ui/core'; | ||
{ | ||
colorCustom = theme.palette.custom.main; | ||
if (theme.palette.custom && theme.palette.custom.main) { | ||
colorCustom = theme.palette.custom.main; | ||
break; | ||
} | ||
if (!color) colorCustom = theme.palette.primary.main; | ||
break; | ||
@@ -38,3 +43,3 @@ } | ||
return colorCustom; | ||
}, [color, theme.palette.primary.main, theme.palette.secondary.main, theme.palette.custom.main]); | ||
}, [color, theme.palette]); | ||
return colorCustom; | ||
@@ -41,0 +46,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
/** @license Krowdy-UI v0.0.1 | ||
/** @license Krowdy-UI v0.0.2 | ||
* | ||
@@ -3,0 +3,0 @@ * This source code is licensed under the MIT license found in the |
{ | ||
"name": "@krowdy-ui/assets", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "author": "Krowdy Team", |
@@ -33,3 +33,8 @@ "use strict"; | ||
{ | ||
colorCustom = theme.palette.custom.main; | ||
if (theme.palette.custom && theme.palette.custom.main) { | ||
colorCustom = theme.palette.custom.main; | ||
break; | ||
} | ||
if (!color) colorCustom = theme.palette.primary.main; | ||
break; | ||
@@ -46,3 +51,3 @@ } | ||
return colorCustom; | ||
}, [color, theme.palette.primary.main, theme.palette.secondary.main, theme.palette.custom.main]); | ||
}, [color, theme.palette]); | ||
return colorCustom; | ||
@@ -49,0 +54,0 @@ }; |
2328922
25171