Skip to content

Commit

Permalink
fix progressbar prop naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 23, 2024
1 parent 546451e commit 888d625
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const ReviewPage = ({
$color={COLORS.shrub}
style={{
textAlign: 'center',
marginTop: '90px',
marginTop: '40px',
marginBottom: '40px',
}}
>
Expand Down
2 changes: 1 addition & 1 deletion components/ProgressBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BackgroundDiv, ProgressDiv } from './styles';
export default function ProgressBar({ progress }: { progress: number }) {
return (
<BackgroundDiv>
<ProgressDiv width={progress} />
<ProgressDiv $width={progress} />
</BackgroundDiv>
);
}
4 changes: 2 additions & 2 deletions components/ProgressBar/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export const BackgroundDiv = styled.div`
position: relative;
`;

export const ProgressDiv = styled.div<{ width: number }>`
width: ${props => props.width}%;
export const ProgressDiv = styled.div<{ $width: number }>`
width: ${({ $width }) => $width}%;
height: 0.375rem;
border-radius: 3px;
background-color: ${COLORS.shrub};
Expand Down

0 comments on commit 888d625

Please sign in to comment.