-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from damla/link-fix
[#36] fix: problem with the language links solved
- Loading branch information
Showing
9 changed files
with
60 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import Link from "next/link"; | ||
import styles from "./menu-item.module.scss"; | ||
|
||
export default function MenuItem({ href, children, locale }) { | ||
export default function MenuItem({ href, children, lang, refresh }) { | ||
// TODO: Ignore warning from here | ||
return ( | ||
<li> | ||
<Link href={href} locale={locale}> | ||
<a className={styles.container}>{children}</a> | ||
</Link> | ||
</li> | ||
<> | ||
{refresh ? ( | ||
<li> | ||
<a href={href} locale={lang} className={styles.container}> | ||
{children} | ||
</a> | ||
</li> | ||
) : ( | ||
<li> | ||
<Link href={href} locale={lang}> | ||
<a className={styles.container}>{children}</a> | ||
</Link> | ||
</li> | ||
)} | ||
</> | ||
); | ||
} | ||
/* TODO: Burayi test et, oncesinde {"classname"} seklinde yazilmis, problem cikarabilirdi */ | ||
/* TODO: fix the bug about links */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ body { | |
} | ||
} | ||
ul, | ||
li { | ||
li, | ||
button { | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05f5313
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: