Skip to content

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudyb committed Apr 11, 2024
1 parent 63d2764 commit 9427e62
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default meta

const PrimaryComponent: React.FC<FooterProps> = (args) => {
const testFunction = useCallback(() => {
alert("Test call")
alert('Test call')
}, [])

return (
Expand Down
16 changes: 10 additions & 6 deletions packages/components/src/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,17 @@ export const Footer: FC<FooterProps> = memo(function Footer({
const footerLinks = useMemo(() => {
return links.map(({ name, href, onClick, hide }, i) => {
console.log(onClick)
return (hide === false || hide === undefined) ? (
<Link key={name} divider={i !== 0} style={style} href={href} onClick={onClick}>
return hide === false || hide === undefined ? (
<Link
key={name}
divider={i !== 0}
style={style}
href={href}
onClick={onClick}
>
{name}
</Link>
) : (
null
)
) : null
})
}, [links, style])

Expand All @@ -82,7 +86,7 @@ const Link: FC<
style,
onClick,
}) {
return (href == null || href === '') ? (
return href == null || href === '' ? (
<>
{divider && <Text variant='tiny'>|</Text>}
<LinkDiv style={style} className={className} id={id} onClick={onClick}>
Expand Down

0 comments on commit 9427e62

Please sign in to comment.