Skip to content

Commit 52be7ef

Browse files
committed
👌 remove inline styles from IconLink component
1 parent 5aa3495 commit 52be7ef

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

client/modules/IDE/pages/IDEViewMobile.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ const Icon = styled.a`
6969
}
7070
`;
7171

72+
const StyledLink = styled(Link)`
73+
width: 3rem;
74+
margin-right: 1.25rem;
75+
margin-left: none;
76+
`;
77+
7278

7379
const Screen = ({ children }) => (
7480
<div className="fullscreen-preview">
@@ -91,9 +97,9 @@ const IDEViewMobile = (props) => {
9197
return (
9298
<Screen>
9399
<Header>
94-
<Link to="/" style={{ width: '3rem', marginRight: '1.25rem' }}>
100+
<StyledLink to="/">
95101
<CloseIcon viewBox="20 21 60 60" aria-hidden="true" aria-label="close header" />
96-
</Link>
102+
</StyledLink>
97103
<div>
98104
<h2>{project.name}</h2>
99105
<h3>{selectedFile.name}</h3>

0 commit comments

Comments
 (0)