feat: 버튼 컴포넌트 추가
This commit is contained in:
@@ -6,9 +6,9 @@ interface ApproveButtonProps {
|
||||
|
||||
const ApproveButton = ({ approveFunc }: ApproveButtonProps) => {
|
||||
return (
|
||||
<Button color="emerald" className="px-6" onClick={approveFunc}>
|
||||
<i className="diveicon di-check-circle translate-y-[1px]" />
|
||||
<span className="translate-y-[-1px]">승인</span>
|
||||
<Button className="px-6" onClick={approveFunc}>
|
||||
<i className="diveicon di-check-circle" />
|
||||
<span>승인</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface LastYearDataButtonProps {
|
||||
getLastYearDataFunc: () => void;
|
||||
}
|
||||
|
||||
const LastYearDataButton = ({ getLastYearDataFunc }: LastYearDataButtonProps) => {
|
||||
return (
|
||||
<Button color="emerald" className="px-6" onClick={getLastYearDataFunc}>
|
||||
<i className="diveicon di-search" />
|
||||
<span>지난연도 데이터 가져오기</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default LastYearDataButton;
|
||||
@@ -7,8 +7,8 @@ interface RejectButtonProps {
|
||||
const RejectButton = ({ rejectFunc }: RejectButtonProps) => {
|
||||
return (
|
||||
<Button color="red" className="px-6" onClick={rejectFunc}>
|
||||
<i className="diveicon di-exclamation-circle translate-y-[1px]" />
|
||||
<span className="translate-y-[-1px]">보완 요청</span>
|
||||
<i className="diveicon di-exclamation-circle" />
|
||||
<span>보완 요청</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface ReturnButtonProps {
|
||||
returnFunc: () => void;
|
||||
}
|
||||
|
||||
const ReturnButton = ({ returnFunc }: ReturnButtonProps) => {
|
||||
return (
|
||||
<Button color="red" className="px-6" onClick={returnFunc}>
|
||||
<i className="diveicon di-arrow-reset" />
|
||||
<span>반려</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default ReturnButton;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface ReviewOpinionButtonProps {
|
||||
reviewOpinionFunc: () => void;
|
||||
}
|
||||
|
||||
const ReviewOpinionButton = ({ reviewOpinionFunc }: ReviewOpinionButtonProps) => {
|
||||
return (
|
||||
<Button color="emerald" className="px-6" onClick={reviewOpinionFunc}>
|
||||
<i className="diveicon di-pencil" />
|
||||
<span>검토의견 작성</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default ReviewOpinionButton;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface SaveButtonProps {
|
||||
saveFunc: () => void;
|
||||
}
|
||||
|
||||
const SaveButton = ({ saveFunc }: SaveButtonProps) => {
|
||||
return (
|
||||
<Button color="green" className="px-6" onClick={saveFunc}>
|
||||
<i className="diveicon di-download" />
|
||||
<span>저장</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default SaveButton;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface SubmitExceptionButtonProps {
|
||||
SubmitExceptionFunc: () => void;
|
||||
}
|
||||
|
||||
const SubmitExceptionButton = ({ SubmitExceptionFunc }: SubmitExceptionButtonProps) => {
|
||||
return (
|
||||
<Button color="red" className="px-6" onClick={SubmitExceptionFunc}>
|
||||
<i className="diveicon di-box-arrow-upload" />
|
||||
<span>예외제출</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default SubmitExceptionButton;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Button } from "@common/components";
|
||||
|
||||
interface SubmitButtonProps {
|
||||
submitFunc: () => void;
|
||||
}
|
||||
|
||||
const SubmitButton = ({ submitFunc }: SubmitButtonProps) => {
|
||||
return (
|
||||
<Button className="px-6" onClick={submitFunc}>
|
||||
<i className="diveicon di-upload" />
|
||||
<span>제출</span>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default SubmitButton;
|
||||
Reference in New Issue
Block a user