Skip to content

Commit 8430119

Browse files
author
Beyzanur Seyhan
committed
fix: fix code format with prettier
1 parent d3c2d75 commit 8430119

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

components/Sort.tsx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,38 +25,37 @@ export default function Sort() {
2525

2626
const navigationItems = [
2727
{
28-
name: "Best match",
28+
name: 'Best match',
2929
href: { query: { ...router.query } }
3030
},
3131
{
32-
name: "Most stars",
32+
name: 'Most stars',
3333
href: { query: { ...router.query, s: 'stars', o: 'desc' } }
3434
},
3535
{
36-
name: "Fewest stars",
36+
name: 'Fewest stars',
3737
href: { query: { ...router.query, s: 'stars', o: 'asc' } }
3838
},
3939
{
40-
name: "Most forks",
40+
name: 'Most forks',
4141
href: { query: { ...router.query, s: 'forks', o: 'desc' } }
4242
},
4343
{
44-
name: "Fewest forks",
44+
name: 'Fewest forks',
4545
href: { query: { ...router.query, s: 'forks', o: 'asc' } }
4646
},
4747
{
48-
name: "Most help wanted issues",
48+
name: 'Most help wanted issues',
4949
href: { query: { ...router.query, s: 'help-wanted-issues', o: 'desc' } }
5050
},
5151
{
52-
name: "Recently updated",
52+
name: 'Recently updated',
5353
href: { query: { ...router.query, s: 'updated', o: 'desc' } }
5454
},
5555
{
56-
name: "Least recently updated",
56+
name: 'Least recently updated',
5757
href: { query: { ...router.query, s: 'updated', o: 'asc' } }
58-
},
59-
58+
}
6059
];
6160

6261
const selectedSort = (): SortTypes => {
@@ -79,7 +78,7 @@ export default function Sort() {
7978

8079
const handleClick = () => {
8180
const elem = document.activeElement as HTMLElement;
82-
if(elem){
81+
if (elem) {
8382
elem?.blur();
8483
}
8584
};
@@ -117,9 +116,7 @@ export default function Sort() {
117116
<ul tabIndex={0} className="menu menu-vertical">
118117
{navigationItems.map((item, index) => (
119118
<li key={index} onClick={handleClick}>
120-
<Link href={{ query: item.href.query }}>
121-
{item.name}
122-
</Link>
119+
<Link href={{ query: item.href.query }}>{item.name}</Link>
123120
</li>
124121
))}
125122
</ul>

0 commit comments

Comments
 (0)