Skip to content

Commit

Permalink
chore: 기수 -> 전체 기수
Browse files Browse the repository at this point in the history
  • Loading branch information
sounmind committed Nov 29, 2024
1 parent d9643d8 commit eb99dd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/components/SearchBar/SearchBar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
border: 2px solid #846de9;
border-radius: 10px;

width: 276px;
width: max-content;
height: 40px;
padding: 13px 15px;

Expand All @@ -27,6 +27,7 @@
}

select {
width: 75px;
border: 0;

&:hover {
Expand Down
4 changes: 2 additions & 2 deletions src/components/SearchBar/SearchBar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import { beforeEach, expect, test, vi } from "vitest";
import SearchBar from "./SearchBar";
import type { Filter } from "../../hooks/useMembers";
import SearchBar from "./SearchBar";

const totalCohorts = 5;
let onSearchMock: ReturnType<typeof vi.fn>;
Expand Down Expand Up @@ -34,7 +34,7 @@ test("renders select field and options by totalCohorts", () => {
/>,
);

expect(screen.getByText("기수")).toBeInTheDocument();
expect(screen.getByText("전체 기수")).toBeInTheDocument();
expect(screen.getByLabelText("기수 선택")).toBeInTheDocument();

for (let i = 1; i <= totalCohorts; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function SearchBar({
onChange={handleCohortChange}
aria-label="기수 선택"
>
<option value="">기수</option>
<option value="">전체 기수</option>
{[...Array(totalCohorts)].map((_, index) => (
<option key={index} value={index + 1}>
{index + 1}
Expand Down

0 comments on commit eb99dd1

Please sign in to comment.