-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GGFE-243] 관리자 - 확성기 버튼 비활성화 추가 + 거래내역 테이블 수정 #994
The head ref may contain hidden characters: "GGFE-243-\uAD00\uB9AC\uC790-\uD655\uC131\uAE30-\uBC84\uD2BC-\uBE44\uD65C\uC131\uD654-\uCD94\uAC00"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다! 선물한 경우에만 받는 사람 인트라 아이디 보여주는 것도 저는 괜찮은 것 같아요! 수고하셨습니당 😆👍
{megaphone.status === '삭제' || | ||
megaphone.status === '사용 완료' | ||
? 'X' | ||
: '삭제'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
megaphone.status
타입이 '삭제'
, '사용 완료'
, '사용 중'
, '사용 대기'
이렇게 4가지인건가요??
지금은 Imegaphone
에 status
가 string
타입인데 리터럴 타입으로 바꾸면 더 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타입이 4가지로 고정되어 있으니 리터럴 타입이 더 좋겠군요. 감사합니다! 수정하겠습니다!
@@ -41,6 +41,14 @@ function ReceiptList() { | |||
const [intraId, setIntraId] = useState<string>(''); | |||
const setSnackBar = useSetRecoilState(toastState); | |||
|
|||
const itemStatus: { [key: string]: string } = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key를 string 대신 type ItemStatus = 'BEFORE' | 'WAITING' | 'USING' | 'USED' | 'DELETED' 이렇게 스트링 리터럴 타입으로 지정하면 좋을 것 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도 있었네요! 감사합니다! 여기도 스트링 리터럴 타입으로 적용하겠습니다!
@@ -45,6 +45,10 @@ | |||
border-radius: 8px; | |||
justify-content: center; | |||
align-items: center; | |||
&:disabled { | |||
cursor: not-allowed; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
커서 속성에도 여러가지가 있네요! 새로운 것 배워갑니다👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
선물에만 받은 사람 나오니까 훨씬 보기 편한 것 같아요! 확성기 버튼 비활성화도 잘 적용되어있네요. 고생하셨습니다!!!😃
📌 개요
💻 작업사항
✅ 변경로직