From f0134493dbcb37289f787a17cc5e06efe93987d9 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Sun, 15 Jan 2023 09:57:17 -0800 Subject: [PATCH] adding theme context to modal shortcut --- net/web/src/session/identity/Identity.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/web/src/session/identity/Identity.jsx b/net/web/src/session/identity/Identity.jsx index 166cdf62..3d164bc5 100644 --- a/net/web/src/session/identity/Identity.jsx +++ b/net/web/src/session/identity/Identity.jsx @@ -6,10 +6,11 @@ import { LogoutOutlined, InfoCircleOutlined, ExclamationCircleOutlined, DownOutl export function Identity({ openAccount, openCards, cardUpdated }) { + const [modal, modalContext] = Modal.useModal(); const { state, actions } = useIdentity(); const logout = () => { - Modal.confirm({ + modal.confirm({ title: 'Are you sure you want to logout?', icon: , onOk() { @@ -36,6 +37,7 @@ export function Identity({ openAccount, openCards, cardUpdated }) { return ( + { modalContext } { state.init && ( )}