Skip to content

Commit

Permalink
feat: clear icon 클릭시 뒤로가기 동작 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
eunbae0 committed Jan 29, 2024
1 parent 9810f58 commit 3aeadcf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/hooks/useHandleClearIcon.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import uoslifeBridge from '../bridge';
import useIsMainStore from '../store/isMain';

const useHandleClearIcon = () => {
const { setMainPage } = useIsMainStore();

const handleClickClearIcon = async () => {
await uoslifeBridge.goBack();
setMainPage();
};

return handleClickClearIcon;
};

export default useHandleClearIcon;

0 comments on commit 3aeadcf

Please sign in to comment.