Skip to content

Commit

Permalink
앱설치유도모달 및 로그인모달 options 결합
Browse files Browse the repository at this point in the history
  • Loading branch information
dongoc committed Jan 15, 2025
1 parent 997ea05 commit c28aee3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/triple-web/src/modal/use-app-install-cta-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ export function useAppInstallCtaModal() {
(options?: ShowOptions) => {
addUriHash(APP_INSTALL_CTA_MODAL_HASH)

const combinedOptions = options ?? appInstallCtaModalContext?.showOptions
const combinedOptions = {
...appInstallCtaModalContext?.showOptions,
...options,
}

if (combinedOptions) {
appInstallCtaModalRef.current = combinedOptions
}
Expand Down
5 changes: 4 additions & 1 deletion packages/triple-web/src/modal/use-login-cta-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export function useLoginCtaModal() {
(options?: ShowOptions) => {
addUriHash(LOGIN_CTA_MODAL_HASH)

const combinedOptions = options ?? loginCtaModalContext?.showOptions
const combinedOptions = {
...loginCtaModalContext?.showOptions,
...options,
}
if (combinedOptions) {
loginCtaModalRef.current = combinedOptions
}
Expand Down

0 comments on commit c28aee3

Please sign in to comment.