Skip to content

Commit 9c24d85

Browse files
author
Beyzanur Seyhan
committed
fixed: format with prettier
1 parent 6fdbb8e commit 9c24d85

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

components/Sort.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,21 @@ export default function Sort() {
8080

8181
const handleClick = () => {
8282
const elem = document.activeElement as HTMLElement;
83-
if(elem){
83+
if (elem) {
8484
elem?.blur();
8585
}
8686
};
8787
return (
8888
<div className="flex justify-center items-center mb-8 flex-col gap-2">
8989
<div className="dropdown dropdown-hover">
90-
<Button tabIndex={0} className="m-1 py-2">
91-
<FontAwesomeIcon
92-
icon={faCode}
93-
className=" w-6 h-6 mr-3"
94-
></FontAwesomeIcon>
95-
Language
96-
</Button>
97-
<div
98-
className="h-64 p-2 overflow-y-scroll dropdown-content shadow z-50 bg-base-100 rounded-box w-60">
90+
<Button tabIndex={0} className="m-1 py-2">
91+
<FontAwesomeIcon
92+
icon={faCode}
93+
className=" w-6 h-6 mr-3"
94+
></FontAwesomeIcon>
95+
Language
96+
</Button>
97+
<div className="h-64 p-2 overflow-y-scroll dropdown-content shadow z-50 bg-base-100 rounded-box w-60">
9998
<ul tabIndex={0} className="menu menu-vertical">
10099
{mainLanguages.sort(sortByName).map(language => (
101100
<li key={language} onClick={handleClick}>
@@ -108,15 +107,14 @@ export default function Sort() {
108107
</div>
109108
</div>
110109
<div className="dropdown dropdown-hover">
111-
<Button tabIndex={0} className="py-2">
112-
<FontAwesomeIcon
113-
icon={faArrowUpAZ}
114-
className=" w-6 h-6 mr-3"
115-
></FontAwesomeIcon>
116-
{selectedSort()}
117-
</Button>
118-
<div
119-
className="h-64 p-2 z-50 overflow-y-scroll shadow dropdown-content bg-base-100 rounded-box w-60">
110+
<Button tabIndex={0} className="py-2">
111+
<FontAwesomeIcon
112+
icon={faArrowUpAZ}
113+
className=" w-6 h-6 mr-3"
114+
></FontAwesomeIcon>
115+
{selectedSort()}
116+
</Button>
117+
<div className="h-64 p-2 z-50 overflow-y-scroll shadow dropdown-content bg-base-100 rounded-box w-60">
120118
<ul tabIndex={0} className="menu menu-vertical">
121119
{navigationItems.map((item, index) => (
122120
<li key={index} onClick={handleClick}>

0 commit comments

Comments
 (0)