Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 18, 2020
1 parent a309e94 commit 3b12e42
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/hover-react/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Microlink from "@microlink/react";
import styled from "styled-components";
import React from "react";
import Microlink from '@microlink/react'
import styled from 'styled-components'
import React from 'react'

const PopOver = styled.div`
position: absolute;
Expand All @@ -19,7 +19,7 @@ const PopOver = styled.div`
&:hover {
box-shadow: rgba(0, 0, 0, 0.12) 0px 30px 60px;
}
`;
`

const Wrapper = styled.span`
text-decoration: inherit;
Expand Down Expand Up @@ -48,20 +48,20 @@ const Wrapper = styled.span`
.microlink_hover:hover {
border-color: #f5f8fa;
}
`;
`

const withHover = ({ LinkComponent, ...props }) => (
<Wrapper>
<LinkComponent {...props} />
<PopOver className="microlink_hover">
<PopOver className='microlink_hover'>
<Microlink {...props} />
</PopOver>
</Wrapper>
);
)

const MicrolinkHover = (LinkComponent, microlinkProps) => (props) =>
withHover({ LinkComponent, ...microlinkProps, ...props });
withHover({ LinkComponent, ...microlinkProps, ...props })

MicrolinkHover.withHover = withHover;
MicrolinkHover.withHover = withHover

export default MicrolinkHover;
export default MicrolinkHover

0 comments on commit 3b12e42

Please sign in to comment.