Skip to content

Commit

Permalink
Disclaimer: fix css parameter type (#7413)
Browse files Browse the repository at this point in the history
The css parameter is not a function, so remove the function and access props directly.
  • Loading branch information
pjonsson authored Mar 11, 2025
1 parent aa5211e commit cf9803c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/ReactViews/Disclaimer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,16 +112,14 @@ class Disclaimer extends Component {
<Text
styledLineHeight={"18px"}
textLight
css={(props) =>
`
css={`
// not sure of the ideal way to deal with this
a {
font-weight: 600;
color: ${props.theme.colorPrimary};
color: ${this.props.theme.colorPrimary};
text-decoration: none;
}
`
}
`}
>
{parseCustomMarkdownToReact(disclaimerMessage)}
</Text>
Expand Down

0 comments on commit cf9803c

Please sign in to comment.