Skip to content

Commit c483381

Browse files
author
Henrique Sousa
committed
select component
1 parent 2e30460 commit c483381

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Select/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const Select: React.FC<SelectProps> = ({
1818
}: SelectProps) => {
1919
return (
2020
<StyledSelect
21-
InputWidth={styleWidth || '23.75rem'}
21+
SelectWidth={styleWidth || '23.75rem'}
2222
Color={color || 'var(--black)'}
2323
Size={Size || '1.5rem'}
2424
>

src/components/Select/styles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components';
22

33
interface Props {
4-
InputWidth: string;
4+
SelectWidth: string;
55
Color: string;
66
Size: string;
77
}
@@ -10,7 +10,7 @@ export const StyledSelect = styled.div<Props>`
1010
display: flex;
1111
flex-direction: column;
1212
13-
width: ${props => props.InputWidth || '23.75rem'};
13+
width: ${props => props.SelectWidth || '23.75rem'};
1414
1515
margin: 0;
1616
@@ -30,7 +30,7 @@ export const StyledSelect = styled.div<Props>`
3030
border: 0;
3131
border-radius: 1.25rem;
3232
33-
width: ${props => props.InputWidth || '23.75rem'}
33+
width: ${props => props.SelectWidth || '23.75rem'}
3434
}
3535
3636
`;

0 commit comments

Comments
 (0)