Skip to content

Commit e19debe

Browse files
authored
feat: add searchbox label (#80)
1 parent 7c35966 commit e19debe

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/pages/stats/[login].tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { RepositoryContributionsCard } from "@/components";
22
import { useGitHubPullRequests } from "@/hooks";
3+
import { PullRequestContributionsByRepository } from "@/types/github";
4+
import { exportAsImage } from "@/utils";
35
import { useSession } from "next-auth/react";
46
import { useRouter } from "next/router";
57
import { useMemo, useState } from "react";
6-
import { exportAsImage } from "@/utils";
7-
import { PullRequestContributionsByRepository } from "@/types/github";
88

99
const yearsRange = 4;
1010

@@ -214,16 +214,15 @@ export default function Stats() {
214214
);
215215
})}
216216
</div>
217-
<div className="my-5">
218-
<div className="my-5 flex items-center">
219-
<input
220-
type="text"
221-
placeholder="Type here"
222-
className="input input-bordered w-full max-w-xs"
223-
value={searchQuery}
224-
onChange={(e) => setSearchQuery(e.target.value)}
225-
/>
226-
</div>
217+
<div className="my-5 flex flex-col sm:items-start items-center">
218+
<label>Search</label>
219+
<input
220+
type="text"
221+
placeholder="Type here"
222+
className="input input-bordered w-full max-w-xs"
223+
value={searchQuery}
224+
onChange={(e) => setSearchQuery(e.target.value)}
225+
/>
227226
</div>
228227
</div>
229228

0 commit comments

Comments
 (0)