-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Goorm-Lucky7/develop/uiresult
[PR] UI TEST 결과 개선 및 공통 컴포넌트 생성
- Loading branch information
Showing
53 changed files
with
699 additions
and
432 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { checkModalStore } from '@/stores/modal'; | ||
import { createPortal } from 'react-dom'; | ||
import { CheckModal } from '@/pages/signup/components'; | ||
import { useEffect } from 'react'; | ||
|
||
const SignupCheckPortal = () => { | ||
const { checkModalValue, close } = checkModalStore(); | ||
const $portal_root = document.getElementById('content-portal'); | ||
useEffect(() => { | ||
return () => close(); | ||
}, [close]); | ||
return ( | ||
<> | ||
{$portal_root | ||
? createPortal( | ||
<div>{checkModalValue.open && <CheckModal {...checkModalValue} />}</div>, | ||
$portal_root, | ||
) | ||
: null} | ||
</> | ||
); | ||
}; | ||
|
||
export default SignupCheckPortal; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { PropsWithChildren, useEffect } from 'react'; | ||
|
||
const GlobalErrorBoundary = ({ children }: PropsWithChildren) => { | ||
const captureReject = (e) => { | ||
e.preventDefault(); | ||
if (e.reason instanceof Error) { | ||
console.log(e.reason); | ||
} | ||
}; | ||
|
||
useEffect(() => { | ||
window.addEventListener('unhandledrejection', captureReject); | ||
return () => window.removeEventListener('unhandledrejection', captureReject); | ||
}, []); | ||
|
||
return <div>{children}</div>; | ||
}; | ||
|
||
export default GlobalErrorBoundary; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
export { default as Navbar } from './navbar'; | ||
export { default as Alert } from './alert'; | ||
export { default as Icon } from './icon'; | ||
export { default as InputField } from './inputField'; | ||
export { default as Alert } from './alert'; | ||
export { default as Navbar } from './navbar'; | ||
export { default as Button } from './button'; | ||
export { default as NicknameNProfile } from './nicknameNProfile'; | ||
export { default as NoneData } from './noneData'; | ||
export { default as StarRate } from './starRate'; | ||
export { default as InputField } from './inputField'; | ||
export { default as PageButtons } from './pageButtons'; | ||
export { default as NoneData } from './noneData'; | ||
export { default as CircleLoader } from './circleLoader'; | ||
export { default as NicknameNProfile } from './nicknameNProfile'; | ||
export { default as FetchBoundary } from './errorBoundary/FetchBoundary'; | ||
export { default as GlobalBoundary } from './errorBoundary/GlobalBoundary'; | ||
|
||
export { default as Text } from './Text'; | ||
export { default as Dimmed } from './Dimmed'; | ||
export { default as UserCircle } from './UserCircle'; | ||
export { default as ChatPortal } from './ChatPortal'; | ||
export { default as AlertPortal } from './AlertPortal'; | ||
export { default as GalleryInfoPortal } from './GalleryInfoPortal'; | ||
export { default as ChatPortal } from './ChatPortal'; | ||
export { default as UserCircle } from './UserCircle'; | ||
export { default as ApiErrorBoundary } from './ApiErrorBoundary'; | ||
export { default as SignupCheckPortal } from './SignupCheckPortal'; |
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
Oops, something went wrong.