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
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,17 @@ const ContractEditModal = ({
})}
</Box>
)}
<Button
text="수정"
onClick={handleSubmit}
sx={{ mt: 2, color: "white !important", backgroundColor: "#164F9E" }}
/>
<Box sx={{ display: "flex", justifyContent: "flex-end" }}>
<Button
text="수정"
onClick={handleSubmit}
sx={{
mt: 2,
color: "white !important",
backgroundColor: "#164F9E",
}}
Comment on lines +612 to +616
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider extracting the Button's sx styling into a shared style constant if it will be reused elsewhere in the codebase to improve maintainability.

Suggested change
sx={{
mt: 2,
color: "white !important",
backgroundColor: "#164F9E",
}}
sx={editButtonStyles}

Copilot uses AI. Check for mistakes.
/>
</Box>
</Box>
</Modal>
);
Expand Down
11 changes: 6 additions & 5 deletions src/pages/DashboardPage/RecentContractsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,14 @@ const RecentContractsModal = ({
DEPOSIT: "#2196f3",
MONTHLY: "#ff9800",
};
if (!contract.category) return "-";
if (
!contract.category ||
!categoryKoreanMap[contract.category]
)
return "-";
return (
<Chip
label={
categoryKoreanMap[contract.category] ??
contract.category
}
label={categoryKoreanMap[contract.category]}
variant="outlined"
sx={{
color: colorMap[contract.category],
Expand Down