Skip to content

Commit

Permalink
add : 취업상태 반영
Browse files Browse the repository at this point in the history
add : 취업상태 반영
  • Loading branch information
phyuna0525 authored Jul 29, 2024
2 parents 5f139a5 + 0536fc4 commit a648739
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/api/bug/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import apiError from "@/hook/errorHandling";
interface BugProp {
title: string;
content: string;
file_name: string[];
file_name: string;
}

export const BugPost = () => {
Expand Down
19 changes: 8 additions & 11 deletions src/app/classChange/status/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,14 @@ const ClassChangeOk = () => {
const ChangeClassDataFloor = async () => {
try {
if (selectedFloor) {
await changelistFloorMutate(
{ floor: selectedFloor },
{
onSuccess: (data) => {
setFloorData(data);
},
onError: (error) => {
console.log(error);
},
}
);
await changelistFloorMutate(selectedFloor, {
onSuccess: (data) => {
setFloorData(data);
},
onError: (error) => {
console.log(error);
},
});
}
} catch (error) {
console.log(error);
Expand Down
9 changes: 6 additions & 3 deletions src/components/dropdown/status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const AfterCheck: React.FC<AfterCheckProp> = ({ state, onChange, type }) => {
case "외출":
return "border border-primary-500 text-primary-500";
case "이동":
return "border border border-tertiary-300 text-tertiary-300";
return "border border-tertiary-300 text-tertiary-300";
case "취업":
case "현체":
return "border border-neutral-500 text-neutral-500";
default:
return "";
}
Expand Down Expand Up @@ -75,9 +78,9 @@ const AfterCheck: React.FC<AfterCheckProp> = ({ state, onChange, type }) => {
setIsDropdownVisible(false);
};

return state === "현체" ? (
return state === "현체" || state === "취업" ? (
<div
className={`w-full h-max px-4 py-1 text-label1 text-neutral-400 rounded-lg bg-white`}
className={`box-border group px-4 py-1 bg-white rounded-lg text-Button-ES fle x justify-between items-center ${style()}`}
>
{selectedOption}
</div>
Expand Down

0 comments on commit a648739

Please sign in to comment.