diff --git a/packages/app/components/settings/setting-edit-nickname-moda.tsx b/packages/app/components/settings/setting-edit-nickname-moda.tsx index feee6f77ea..d1cc6d93b8 100644 --- a/packages/app/components/settings/setting-edit-nickname-moda.tsx +++ b/packages/app/components/settings/setting-edit-nickname-moda.tsx @@ -13,10 +13,12 @@ import { WalletAddressesV2 } from "app/types"; export type EditNicknameModalProps = { editingWallet?: WalletAddressesV2; onClose: any; + visible: boolean; }; export const EditNicknameModal = ({ editingWallet, onClose, + visible = false, }: EditNicknameModalProps) => { const [nickname, setNickname] = useState(""); const { editWalletNickName } = useAddWalletNickname(); @@ -34,9 +36,13 @@ export const EditNicknameModal = ({ AvoidSoftInput.setEnabled(true); }; }, [editingWallet?.nickname]); - return ( - +
{ - {editingWallet ? ( - setEditingWallet(undefined)} - /> - ) : null} + setEditingWallet(undefined)} + /> ); }; diff --git a/packages/design-system/modal/modal.container.web.tsx b/packages/design-system/modal/modal.container.web.tsx index 50f01e130d..05f3a7ac95 100644 --- a/packages/design-system/modal/modal.container.web.tsx +++ b/packages/design-system/modal/modal.container.web.tsx @@ -47,7 +47,7 @@ const ModalContainerComponent = forwardRef( disableBackdropPress, tw: propTw = "", headerShown = true, - visible, + visible = false, closeButtonProps, }: ModalContainerProps, ref