-
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.
* design: 토스트 컨테이너 패딩 조절 - 토스트 메시지의 padding 속성으로 입력부분이 가려지는 문제가 있어 위와 아래의 패딩을 0으로 설정 * refactor: GlobalLayout 폴더 구조 수정 * chore: 라이브러리 수정 - @types/jest 설치 - storybook 업데이트 * feat(ContentLayout): 전역적으로 사용할 main태그 레이아웃 구현 * refactor(Header): 로그인 버튼 제거 및 추상화 * feat(useRouter): 라우팅 커스텀 훅 구현 * chore: 뒤로가기, 공유 SVG 추가 및 체크 SVG 수정 * refactor: 페이지별 헤더 추가, ContentLayout 적용 - 필요한 헤더에 뒤로가기 라우팅, 공유 기능 구현 * design: 전체적인 레이아웃 변경으로 인한 CSS 수정 * refactor: 새로고침 시, failed to fetch 에러가 발생하는 문제로 기본 형태를 반환할 수 있도록 수정 * refactor(useRouter): useNavigate를 담는 변수명 수정 * refactor(useRouter): uuid제거 및 뒤로가기 기능 추가 * feat(useUuid): uuid를 불러오는 훅 구현 * refactor: useParams, navigate를 사용하는 함수에 useRouter, useUuid 적용 * refactor(GlobalLayout, ContentLayout): `index`로 이름 수정 * feat(UuidLayout, UuidProvider): uuid 내부에서만 사용할 수 있는 UuidLayout 구현 * refactor: useUuid 삭제 및 UuidContext로 대체 * refactor(meetingHandlers): 중복 로직 `||` 연산자로 수정 * feat(BackButton): 뒤로가기 버튼 컴포넌트 구현 * refactor: 사용되던 뒤로가기 버튼을 `BackButton` 컴포넌트로 교체 * refactor(useRouter): routeWithState 함수 추가 및 useNavigate 사용처 useRouter로 변경 * fix: ConfirmModal 변경사항 누락 부분 수정
- Loading branch information
Showing
49 changed files
with
4,921 additions
and
5,108 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
frontend/src/components/_common/Buttons/BackButton/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,24 @@ | ||
import useRouter from '@hooks/useRouter/useRouter'; | ||
|
||
import BackSVG from '@assets/images/back.svg'; | ||
|
||
import { s_headerIconButton } from '../Button/Button.styles'; | ||
|
||
interface BackButtonProps { | ||
path?: string; | ||
} | ||
|
||
export default function BackButton({ path }: BackButtonProps) { | ||
const { routeTo, goBack } = useRouter(); | ||
|
||
const handleBackButtonClick = () => { | ||
if (path === undefined) goBack(); | ||
else routeTo(path); | ||
}; | ||
|
||
return ( | ||
<button css={s_headerIconButton} onClick={handleBackButtonClick}> | ||
<BackSVG width="24" height="24" /> | ||
</button> | ||
); | ||
} |
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
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
Oops, something went wrong.