Skip to content

Commit

Permalink
chore: fix unitesting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX committed Dec 15, 2023
1 parent 2f1d471 commit 8d6a0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/components/_global/BalBtn/BalBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ type Props = {
| 'gradient'
| 'gradient-reverse'
| 'gradient-pink-yellow'
| 'gradient-blue'
| 'gray'
| 'red'
| 'white'
| 'blue'
| 'sky'
| 'yellow'
| 'black'
| 'transparent';
Expand Down Expand Up @@ -113,11 +111,6 @@ const bgGradientClasses = computed(() => {
fromColor = 'pink';
toColor = 'yellow';
}
if (props.color === 'gradient-blue') {
fromColor = 'blue';
toColor = 'sky';
}
if (props.disabled) {
return `bg-gray-300 dark:bg-gray-700 text-white dark:text-gray-500`;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/_global/BalBtn/button-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const generateButtonClassSafelist = () => {
}, []);
};

const gradientFrom = fromColor => `from-${fromColor}`;
const gradientTo = toColor => `to-${toColor}`;
const gradientFrom = fromColor => `from-${fromColor}-600`;
const gradientTo = toColor => `to-${toColor}-600`;

const hoverFrom = fromColor => `hover:from-${fromColor}-700`;
const hoverTo = toColor => `hover:to-${toColor}-700`;
Expand Down

0 comments on commit 8d6a0a9

Please sign in to comment.