Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Commit

Permalink
[UI] connect wallet, then popup msgbox, add words list
Browse files Browse the repository at this point in the history
  • Loading branch information
UnsignedInt8 committed Jul 4, 2021
1 parent 9249287 commit c01d26c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 5 deletions.
42 changes: 42 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "0.1",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json",
"language": "en",
"words": [
"Bankless",
"DeBank",
"Passcode",
"bitjson",
"bitauth",
"cimg",
"circleci",
"codecov",
"commitlint",
"dependabot",
"editorconfig",
"msgbox",
"appicon",
"pendingtx",
"animejs",
"qrcode",
"esnext",
"execa",
"exponentiate",
"globby",
"typescript",
"libauth",
"mkdir",
"prettierignore",
"sandboxed",
"transpiled",
"typedoc",
"untracked",
"walletconnect",
"viewmodels",
"szhsin",
"connectedapps",
"connectedapp"
],
"flagWords": [],
"ignorePaths": ["package.json", "package-lock.json", "yarn.lock", "tsconfig.json", "node_modules/**"]
}
8 changes: 4 additions & 4 deletions src/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ export class WindowApi {
static readonly API_KEY = 'wallet3_window';

maximize = () => {
const currenWindow = require('@electron/remote').getCurrentWindow() as BrowserWindow;
const currentWindow = require('@electron/remote').getCurrentWindow() as BrowserWindow;

if (currenWindow.isMaximized()) {
currenWindow.unmaximize();
if (currentWindow.isMaximized()) {
currentWindow.unmaximize();
} else {
currenWindow.maximize();
currentWindow.maximize();
}
};

Expand Down
4 changes: 3 additions & 1 deletion src/ui/pages/app/components/UtilityBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ export default observer(({ app, walletVM, networksVM }: Props) => {
<button
className="menu-button walletconnect"
title={app.connectingApp ? t('DApp Connecting') : t('Manually Connect DApps')}
onClick={(_) =>
onClick={async (_) =>
app.connectingApp
? undefined
: (await app.connectWallet())
? undefined
: app.ask({ title: t('Manually Connect DApps'), icon: 'activity', message: t('Use WalletConnect') })
}
Expand Down

0 comments on commit c01d26c

Please sign in to comment.