Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
maapteh committed Dec 3, 2019
1 parent ed2f78d commit 53816a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ interface Props {
className?: string;
}

const NoSSRinView = ({ children, fallback = null, rootMargin, className }: Props) => {
const NoSSRinView = ({
children,
fallback = null,
rootMargin,
className,
}: Props) => {
const margin =
rootMargin && /((((.\d*)?(px))){4})/.test(rootMargin)
? rootMargin
Expand Down Expand Up @@ -38,6 +43,3 @@ const NoSSRinView = ({ children, fallback = null, rootMargin, className }: Props
};

export default NoSSRinView;



0 comments on commit 53816a5

Please sign in to comment.