Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/apis/passApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const fetchPassPending = async (page: number) => {
};

// 보호자 신청 승인/거절
export const reviewPass = async (passId: number, issuanceStatus: "ISSUED" | "REJECTED") => {
export const reviewPass = async (passId: number, issuanceStatus: "PROCESSING" | "REJECTED") => {
try {
const res = await axiosWithAuthorization.post(`/passes/approve`, {
passId,
Expand Down
24 changes: 22 additions & 2 deletions src/components/searchbar/css/SearchBar.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
.search-bar {
display: flex;
align-items: center;
gap: 8px;
gap: 0;
width: 600px;
background-color: white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
padding: 0px;
border-radius: 4px;
}

body.dark-mode .search-bar {
background-color: #2b2b2b;
box-shadow: none;
}

.search-bar-dropdown {
position: relative;
Expand Down Expand Up @@ -74,6 +79,21 @@
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}

.search-bar-input::placeholder {
color: #aaa;
}

body.dark-mode .search-bar-input {
background-color: #434343;
color: #f0f0f0;
border: 1px solid #555;
caret-color: #f0f0f0;
}

body.dark-mode .search-bar-input::placeholder {
color: #888;
}

.search-bar-button {
background-color: #1f441f;
Expand All @@ -83,7 +103,7 @@
border: none;
cursor: pointer;
font-size: 14px;
border-radius: 4px;
border-radius: 0 4px 4px 0;
}

.search-bar-button:hover {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PassPendingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const PassPendingPage = () => {

const handleApprove = async (passId: number) => {
try {
await reviewPass(passId, "ISSUED");
await reviewPass(passId, "PROCESSING");
alert("출입증 발급이 승인되었습니다.");
loadData();
} catch (err) {
Expand Down