Skip to content

Commit

Permalink
[#14] fix: Problem solved by adding Fragment but track the related is…
Browse files Browse the repository at this point in the history
…sue for better solution
  • Loading branch information
Damla Koksal committed Nov 30, 2020
1 parent fa90822 commit d7ba12d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
18 changes: 10 additions & 8 deletions components/custom-button/custom-button.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ export default function CustomButton({
return (
<div onClick={onClick ? onClick : null}>
<Link href={href ? href : "/"} scroll={false}>
<a
className={classNames({
button: button,
button__inverted: inverted,
})}
>
{children}
</a>
<>
<a
className={classNames({
button: button,
button__inverted: inverted,
})}
>
{children}
</a>
</>
</Link>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions components/image-box/image-box.styles.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.image-container {
position: relative;
width: 100%;
min-width: 50%;
height: 100%;

&__wider {
width: 55%;
min-width: 55%;
}
}
18 changes: 10 additions & 8 deletions components/logo/logo.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ import "./logo.styles.scss";
export default function Logo({ width, height }) {
return (
<Link href="/">
<Image
className="logo"
src="/assets/images/karsal-logo.png"
alt="karsal-logo"
width={width}
height={height}
layout="fixed"
/>
<>
<Image
className="logo"
src="/assets/images/karsal-logo.png"
alt="karsal-logo"
width={width}
height={height}
layout="fixed"
/>
</>
</Link>
);
}
4 changes: 3 additions & 1 deletion components/menu-item/menu-item.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import "./menu-item.styles.scss";
export default function MenuItem({ href, children }) {
return (
<Link href={href}>
<a className="menu-item">{children}</a>
<>
<a className="menu-item">{children}</a>
</>
</Link>
);
}
2 changes: 1 addition & 1 deletion pages/_document.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MyDocument extends Document {
return (
<Html lang="en">
<Head>
<link rel="stylesheet" href="/assets/fonts/fonts.css" />
<link rel="stylesheet" href="/assets/fonts/fonts.css" />
</Head>
<body>
<Main />
Expand Down

0 comments on commit d7ba12d

Please sign in to comment.