Skip to content

Commit

Permalink
fix: use transient prop for styled components (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Bulat authored Apr 12, 2024
1 parent 7f3d3a6 commit f2a0d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/Overview/StakeStatus/Wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import styled from 'styled-components';
import { PageWidthMediumThreshold } from 'consts';

export const StatusWrapper = styled.div<{ borderBottom: boolean }>`
export const StatusWrapper = styled.div<{ $borderBottom: boolean }>`
display: flex;
flex-wrap: wrap;
padding: 1.5rem 1.5rem 0 1.5rem;
Expand All @@ -31,7 +31,7 @@ export const StatusWrapper = styled.div<{ borderBottom: boolean }>`
> section {
border-bottom: ${(props) =>
props.borderBottom ? '1px solid var(--border-primary-color)' : 'none'};
props.$borderBottom ? '1px solid var(--border-primary-color)' : 'none'};
padding-bottom: 0.75rem;
@media (max-width: ${PageWidthMediumThreshold}px) {
padding-bottom: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Overview/StakeStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const StakeStatus = () => {

return (
<CardWrapper style={{ padding: 0 }}>
<StatusWrapper borderBottom={showTips}>
<StatusWrapper $borderBottom={showTips}>
<RowSection secondary>
<section>
<NominationStatus showButtons={false} />
Expand Down

0 comments on commit f2a0d73

Please sign in to comment.