Skip to content

Commit

Permalink
Merge pull request #18 from Eugene-ak/tweaks
Browse files Browse the repository at this point in the history
Solved type error of value prop in styled component for range input
  • Loading branch information
Eugene-ak authored Mar 27, 2024
2 parents 20415c6 + e69e3c5 commit a10cd90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Sections/PasswordLength.style.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import styled from "styled-components";

type Props = {
value: number;
};

export const PassLengthStyle = styled.div`
width: 100%;
display: flex;
Expand All @@ -16,7 +20,7 @@ export const LengthDetails = styled.div`
justify-content: space-between;
`;

export const RangeStyle = styled.input`
export const RangeStyle = styled.input<Props>`
width: 100%;
height: 7px;
margin-bottom: 2rem;
Expand Down

0 comments on commit a10cd90

Please sign in to comment.