Skip to content

Commit

Permalink
Remove unneccesary function call
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 authored and cemms1 committed Oct 25, 2023
1 parent e728f61 commit 40dd9c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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
1 change: 0 additions & 1 deletion dotcom-rendering/src/palette.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// ----- Imports ----- //

import type { ArticleFormat } from '@guardian/libs';
import {
ArticleDesign,
ArticleDisplay,
Expand Down

0 comments on commit 40dd9c5

Please sign in to comment.