Skip to content

Commit

Permalink
Remove unneccesary function call
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed Oct 24, 2023
1 parent a8f0df7 commit 8dfe4a2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions dotcom-rendering/src/components/Standfirst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,11 @@ const standfirstStyles = ({ display, design, theme }: ArticleFormat) => {
}
};

const hoverStyles = () => {
return css`
a:hover {
border-bottom: solid 1px ${palette('--standfirst-link-border')};
}
`;
};
const hoverStyles = css`
a:hover {
border-bottom: solid 1px ${palette('--standfirst-link-border')};
}
`;

export const Standfirst = ({ format, standfirst }: Props) => {
return (
Expand All @@ -204,7 +202,7 @@ export const Standfirst = ({ format, standfirst }: Props) => {
css={[
nestedStyles(format),
standfirstStyles(format),
hoverStyles(),
hoverStyles,
]}
className={
format.design === ArticleDesign.Interactive
Expand Down

0 comments on commit 8dfe4a2

Please sign in to comment.