-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] 약속 주최자에게만 확정 취소 버튼 표시 및 미확정/취소 시 문구 표시 (#306)
* feat(ActionButtonGroup): 약속 주최자만 확정 취소 버튼이 보이게 구현 * chore: sadMomo svg 추가 * feat: 약속 확정 data가 없을 때 UnconfirmedMessage 컴포넌트 렌더링 * feat(UnconfirmedMessage): 약속 조회 페이지로 이동하는 handleMeetingPageNavigate 함수 구현 * design: height: 100%로 수정 * rename: svg 파일명 변경 (SadMomo → SadMomoCharacter) * rename: svg 파일명 변경 (SadMomoCharacter → sadMomoCharacter)
- Loading branch information
1 parent
df29398
commit 20c53cd
Showing
6 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ export const s_container = css` | |
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
width: 100%; | ||
height: 100%; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...c/pages/FixedMeetingTicketPage/components/UnconfirmedMessage/UnconfirmedMessage.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const s_container = css` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
height: 100%; | ||
`; |
30 changes: 30 additions & 0 deletions
30
frontend/src/pages/FixedMeetingTicketPage/components/UnconfirmedMessage/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import { Button } from '@components/_common/Buttons/Button'; | ||
|
||
import SadMomoCharacter from '@assets/images/sadMomoCharacter.svg'; | ||
|
||
import { s_container } from './UnconfirmedMessage.styles'; | ||
|
||
interface UnconfirmedMessageProps { | ||
uuid: string; | ||
} | ||
function UnconfirmedMessage({ uuid }: UnconfirmedMessageProps) { | ||
const navigate = useNavigate(); | ||
|
||
const handleMeetingPageNavigate = () => { | ||
navigate(`/meeting/${uuid}`); | ||
}; | ||
|
||
return ( | ||
<div css={s_container}> | ||
<SadMomoCharacter width="128" height="128" /> | ||
<div>약속이 아직 확정되지 않았어요 :(</div> | ||
<Button variant="primary" size="full" onClick={() => handleMeetingPageNavigate()}> | ||
약속 조회하러 가기 | ||
</Button> | ||
</div> | ||
); | ||
} | ||
|
||
export default UnconfirmedMessage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters