diff --git a/package-lock.json b/package-lock.json index b8f2fbf..0bd882b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11289,6 +11289,11 @@ "prop-types": "^15.7.2" } }, + "react-icons": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.1.0.tgz", + "integrity": "sha512-FCXBg1JbbR0vWALXIxmFAfozHdVIJmmwCD81Jk0EKOt7Ax4AdBNcaRkWhR0NaKy9ugJgoY3fFvo0PHpte55pXg==" + }, "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", diff --git a/package.json b/package.json index 092e645..9de6f09 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "react-content-loader": "^5.1.4", "react-dom": "^17.0.1", "react-draft-wysiwyg": "^1.14.5", + "react-icons": "^4.1.0", "react-moment": "^1.0.0", "react-redux": "^7.2.2", "react-router-dom": "^5.2.0", diff --git a/src/components/introduce/ApplyStatusButton.jsx b/src/components/introduce/ApplyStatusButton.jsx index e7a5e60..17ca69d 100644 --- a/src/components/introduce/ApplyStatusButton.jsx +++ b/src/components/introduce/ApplyStatusButton.jsx @@ -24,7 +24,7 @@ const ApplyStatusButton = ({ if (!timeStatus && !checkConfirm(userStatus.confirm)) { return ( <> - + 승인 대기중.. - + 승인 완료! load && css` + color: ${palette.violet[4]}; + `}; + + ${({ approve }) => approve && css` + color:#40c057; + `}; `; const LoadingContent = styled.span` @@ -32,11 +42,16 @@ const LoadingContent = styled.span` } `; -const ApproveStatus = ({ children, ...props }) => ( - - {children} - - -); +const ApproveStatus = ({ children, ...props }) => { + const { load, approve } = props; + + return ( + + {children} + {load && } + {approve && } + + ); +}; export default ApproveStatus;