Skip to content

Commit

Permalink
refactor: rabbit-review
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Dec 9, 2024
1 parent 1ab3312 commit d0d8894
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/lib/progress/timeline/bullet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,21 @@ const loading = keyframes`
const Wrapper = styled.div<SideProp & StateProp>`
display: flex;
position: relative;
opacity: ${({ state }) => (!state || state === "active" ? 1 : 0.5)};
justify-content: ${({ rightSided }) =>
rightSided ? "flex-start" : "flex-end"};
${({ state }) =>
state === "loading"
? css`
animation: ${loading} 2s ease-in-out infinite normal;
`
: "none"};
${({ state }) => {
if (state === "disabled")
return css`
opacity: 0.5;
`;
if (state === "loading")
return css`
animation: ${loading} 2s ease-in-out infinite normal;
`;
return css`
opacity: 1;
`;
}}
`;

const StyledTitle = styled.h2``;
Expand Down

0 comments on commit d0d8894

Please sign in to comment.