From b334eb454fe0f9b243e2c8da02bad439d5c8bbc9 Mon Sep 17 00:00:00 2001 From: Dylan-Simplehold <92319334+Dylan-Simplehold@users.noreply.github.com> Date: Mon, 9 Jan 2023 18:37:29 +0800 Subject: [PATCH 1/5] background.js added to manifest --- src/manifest.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/manifest.json b/src/manifest.json index b316f02c..31c8d35c 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -30,6 +30,9 @@ "default_popup": "popup.html", "default_title": "SimpleHold" }, + "background": { + "service_worker": "background.js" + }, "content_scripts": [ { "matches": [ From 536c3529f2ab16d606d5722798c1c64ab4f8d504 Mon Sep 17 00:00:00 2001 From: Dylan-Simplehold <92319334+Dylan-Simplehold@users.noreply.github.com> Date: Mon, 9 Jan 2023 20:53:29 +0800 Subject: [PATCH 2/5] changed version --- package.json | 2 +- src/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b7298be6..d84ff566 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "extension", - "version": "1.26.3", + "version": "1.26.4", "description": "extension", "private": false, "repository": "https://github.com/SimpleHold/extension.git", diff --git a/src/manifest.json b/src/manifest.json index 31c8d35c..b6ecf74e 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "SimpleHold", - "version": "1.26.3", + "version": "1.26.4", "icons": { "16": "favicon-16.png", "32": "favicon-32.png", From 6f877d0c40c405f37f27153a4529c6a99a09ee63 Mon Sep 17 00:00:00 2001 From: Dylan-Simplehold <92319334+Dylan-Simplehold@users.noreply.github.com> Date: Thu, 12 Jan 2023 01:11:28 +0800 Subject: [PATCH 3/5] swapspace welcome screen fix --- package.json | 2 +- src/manifest.json | 2 +- src/pages/WelcomeNew/WelcomeNew.tsx | 4 ++-- src/pages/WelcomeNew/styles.ts | 10 ++++++---- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d84ff566..791bec24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "extension", - "version": "1.26.4", + "version": "1.26.5", "description": "extension", "private": false, "repository": "https://github.com/SimpleHold/extension.git", diff --git a/src/manifest.json b/src/manifest.json index b6ecf74e..14d63340 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "SimpleHold", - "version": "1.26.4", + "version": "1.26.5", "icons": { "16": "favicon-16.png", "32": "favicon-32.png", diff --git a/src/pages/WelcomeNew/WelcomeNew.tsx b/src/pages/WelcomeNew/WelcomeNew.tsx index 6386f016..c020fc46 100644 --- a/src/pages/WelcomeNew/WelcomeNew.tsx +++ b/src/pages/WelcomeNew/WelcomeNew.tsx @@ -164,8 +164,8 @@ const WelcomeNew: React.FC = () => { isAbsolute /> - - + + {themes[theme][0].title} {themes[theme][0].description} diff --git a/src/pages/WelcomeNew/styles.ts b/src/pages/WelcomeNew/styles.ts index c160a372..02e51b48 100644 --- a/src/pages/WelcomeNew/styles.ts +++ b/src/pages/WelcomeNew/styles.ts @@ -60,8 +60,7 @@ const Wrapper = styled.div` } .container { - padding: ${({ theme }: TThemeProps) => - theme === 'swapspace' ? '240px 30px 0 30px' : '20px 30px 0 30px'}; + padding: 20px 30px 0 30px; } .slide { @@ -83,11 +82,14 @@ const Row = styled.div` display: flex; flex-direction: column; align-items: center; + margin-top: ${({ theme }: TThemeProps) => (theme === 'swapspace' ? '200px' : '0')}; ` const Illustrate = styled.img` - width: 230px; - height: 200px; + width: ${({ theme }: TThemeProps) => (theme === 'swapspace' ? '375px' : '230px')}; + height: ${({ theme }: TThemeProps) => (theme === 'swapspace' ? '315px' : '200px')}; + position: ${({ theme }: TThemeProps) => (theme === 'swapspace' ? 'absolute' : 'relative')}; + top: ${({ theme }: TThemeProps) => (theme === 'swapspace' ? '0' : 'initial')}; ` const Title = styled.p` From 1d89958b6a1411ce2a4a9661a12e8e7fa32318d5 Mon Sep 17 00:00:00 2001 From: Dylan-Simplehold <92319334+Dylan-Simplehold@users.noreply.github.com> Date: Thu, 26 Jan 2023 20:30:14 +0800 Subject: [PATCH 4/5] fix: add token ticker --- package.json | 2 +- src/manifest.json | 2 +- src/pages/NewWallet/NewWallet.tsx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 791bec24..0c4f8287 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "extension", - "version": "1.26.5", + "version": "1.26.6", "description": "extension", "private": false, "repository": "https://github.com/SimpleHold/extension.git", diff --git a/src/manifest.json b/src/manifest.json index 14d63340..047589fb 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "SimpleHold", - "version": "1.26.5", + "version": "1.26.6", "icons": { "16": "favicon-16.png", "32": "favicon-32.png", diff --git a/src/pages/NewWallet/NewWallet.tsx b/src/pages/NewWallet/NewWallet.tsx index c49958b0..cdac05bc 100644 --- a/src/pages/NewWallet/NewWallet.tsx +++ b/src/pages/NewWallet/NewWallet.tsx @@ -83,10 +83,9 @@ const NewWallet: React.FC = () => { decimals, }) } - const getCurrenciesList = (getCurrencyInfo?: TCurrency | undefined | null): string[] => { if (getCurrencyInfo) { - return getList(getCurrencyInfo.symbol, chain) + return getList(symbol, chain) } return [symbol] From 0a78601afaab8ab0cd514f4655c42c4414374bee Mon Sep 17 00:00:00 2001 From: Dylan-Simplehold <92319334+Dylan-Simplehold@users.noreply.github.com> Date: Thu, 26 Jan 2023 20:46:22 +0800 Subject: [PATCH 5/5] fix: add token ticker on import --- src/pages/ImportPrivateKey/ImportPrivateKey.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ImportPrivateKey/ImportPrivateKey.tsx b/src/pages/ImportPrivateKey/ImportPrivateKey.tsx index 17614b8e..19443f1a 100644 --- a/src/pages/ImportPrivateKey/ImportPrivateKey.tsx +++ b/src/pages/ImportPrivateKey/ImportPrivateKey.tsx @@ -149,7 +149,7 @@ const ImportPrivateKey: React.FC = () => { const getCurrenciesList = (getCurrencyInfo?: TCurrency | undefined | null): string[] => { if (getCurrencyInfo) { - return getList(getCurrencyInfo.symbol, chain) + return getList(symbol, chain) } return [symbol]