Skip to content

Commit

Permalink
feat: 뒤로가기에 대한 route back message 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Aug 6, 2023
1 parent fd90a5f commit 2ad7719
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/common/service/hooks/useBridgeCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ interface BridgeParams {
};
/** snap 초기화 */
initialize: null;
/** 페이지 뒤로 가기 */
goBack: null;
}

function useBridgeCallback<T extends keyof BridgeParams>(
Expand Down
2 changes: 1 addition & 1 deletion src/common/service/hooks/useWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ declare global {
}
}

type POST_MESSAGE_TYPE = 'login' | 'notification';
type POST_MESSAGE_TYPE = 'login' | 'notification' | 'goBack';

const useWebview = () => {
return React.useMemo(() => {
Expand Down

0 comments on commit 2ad7719

Please sign in to comment.