Skip to content

Commit

Permalink
crear componente button
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Morales committed Apr 16, 2024
1 parent aab7b54 commit 9bbb575
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions src/components/Button/theme/configs/index.ts
Expand Up @@ -92,18 +92,6 @@ export const stlyeConfig = {
main: scaledForDevice(50, moderateScale),
secondary: scaledForDevice(42, moderateScale),
},
shadow: {
// android
shadowColor: '#000',
elevation: 5,
// IOS
shadowOpacity: 0.25,
shadowRadius: 3.84,
shadowOffset: {
width: 0,
height: scaledForDevice(3, moderateScale),
},
},
},
directionWrapper: {
center: {
Expand Down
5 changes: 0 additions & 5 deletions src/components/Button/utils/index.test.ts
Expand Up @@ -33,11 +33,6 @@ describe('getMixedButtonStyles util', () => {
backgroundColor: '#DDDFE2',
paddingHorizontal: 16.5,
paddingVertical: 21,
shadowColor: '#000',
elevation: 5,
shadowOpacity: 0.25,
shadowRadius: 3.84,
shadowOffset: {width: 0, height: 6.5},
},
direction: {
justifyContent: 'center',
Expand Down
5 changes: 0 additions & 5 deletions src/components/Button/utils/index.ts
Expand Up @@ -47,7 +47,6 @@ const containerStyle = ({
const disabledBorderColor = disabled.border[validType][validVariant];

const containerHeight = container.height[validType];
const containerShadow = container.shadow;

// main and pressed button colors
const mainColor = isPressed ? pressedBgColor : mainBgColor;
Expand All @@ -56,9 +55,6 @@ const containerStyle = ({
// validation of height
const hasVerticalHeight = verticalHeights.includes(iconPosition);

// validation of shadow
const hasShadow = type === 'secondary' && variant === 'outlined';

return {
borderWidth: 1,
borderColor: isDisabled || isLoading ? disabledBorderColor : borderColor,
Expand All @@ -68,7 +64,6 @@ const containerStyle = ({
...(!hasVerticalHeight && {
height: variant !== 'text' ? containerHeight : scaledForDevice(35, moderateScale),
}),
...(hasShadow && containerShadow),
};
};

Expand Down

0 comments on commit 9bbb575

Please sign in to comment.