diff --git a/src/frontend/src/lib/derived/modal.derived.ts b/src/frontend/src/lib/derived/modal.derived.ts index eb6687357b..f5bcdc3ce1 100644 --- a/src/frontend/src/lib/derived/modal.derived.ts +++ b/src/frontend/src/lib/derived/modal.derived.ts @@ -97,6 +97,10 @@ export const modalBtcTransaction: Readable = derived( modalStore, ($modalStore) => $modalStore?.type === 'btc-transaction' ); +export const modalSolTransaction: Readable = derived( + modalStore, + ($modalStore) => $modalStore?.type === 'sol-transaction' +); export const modalEthToken: Readable = derived( modalStore, ($modalStore) => $modalStore?.type === 'eth-token' diff --git a/src/frontend/src/lib/stores/modal.store.ts b/src/frontend/src/lib/stores/modal.store.ts index bf9e82518c..3899f50aa3 100644 --- a/src/frontend/src/lib/stores/modal.store.ts +++ b/src/frontend/src/lib/stores/modal.store.ts @@ -23,6 +23,8 @@ export interface Modal { | 'wallet-connect-send' | 'eth-transaction' | 'ic-transaction' + | 'btc-transaction' + | 'sol-transaction' | 'manage-tokens' | 'hide-token' | 'ic-hide-token' @@ -30,7 +32,6 @@ export interface Modal { | 'ic-token' | 'receive-bitcoin' | 'about-why-oisy' - | 'btc-transaction' | 'dapp-details' | 'successful-reward' | 'failed-reward'; @@ -62,6 +63,7 @@ export interface ModalStore extends Readable> { openEthTransaction: (data: D) => void; openIcTransaction: (data: D) => void; openBtcTransaction: (data: D) => void; + openSolTransaction: (data: D) => void; openManageTokens: () => void; openHideToken: () => void; openIcHideToken: () => void; @@ -109,6 +111,7 @@ const initModalStore = (): ModalStore => { openEthTransaction: setTypeWithData('eth-transaction'), openIcTransaction: setTypeWithData('ic-transaction'), openBtcTransaction: setTypeWithData('btc-transaction'), + openSolTransaction: setTypeWithData('sol-transaction'), openManageTokens: setType('manage-tokens'), openHideToken: setType('hide-token'), openIcHideToken: setType('ic-hide-token'),