Skip to content

Commit

Permalink
fix(Link): remove non-standard html props flow down
Browse files Browse the repository at this point in the history
  • Loading branch information
kamleshchandnani committed Mar 2, 2019
1 parent 027aed0 commit 2a43a5b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Link/web/Link.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import styled from 'styled-components';

const styles = {
Expand Down Expand Up @@ -31,7 +32,17 @@ const styles = {
},
};

const Link = styled.a`
const Link = styled(
({
color,
children,
...props
}) => (
<a {...props}>
{children}
</a>
),
)`
color: ${styles.color};
text-decoration: none;
cursor: pointer;
Expand Down

0 comments on commit 2a43a5b

Please sign in to comment.