From 1afe59e4e0b8297ee60d0d73a15b1832bedcf449 Mon Sep 17 00:00:00 2001 From: Tyler Shipe Date: Tue, 8 Jun 2021 10:59:39 -0400 Subject: [PATCH] update modal with sol srm info --- components/AlphaModal.tsx | 46 +++++++++++++++++++++++++++++-------- components/MarketSelect.tsx | 4 ++-- package.json | 2 +- pages/account.tsx | 2 +- pages/index.tsx | 2 +- yarn.lock | 11 +++++---- 6 files changed, 47 insertions(+), 20 deletions(-) diff --git a/components/AlphaModal.tsx b/components/AlphaModal.tsx index e8f6ae74..f809a971 100644 --- a/components/AlphaModal.tsx +++ b/components/AlphaModal.tsx @@ -1,7 +1,6 @@ import React from 'react' import Modal from './Modal' import Button from './Button' -import { ElementTitle } from './styles' import useLocalStorageState from '../hooks/useLocalStorageState' const AlphaModal = ({ @@ -11,23 +10,50 @@ const AlphaModal = ({ isOpen: boolean onClose?: (x) => void }) => { - const [, setAlphaAccepted] = useLocalStorageState('mangoAlphaAccepted', false) + const [, setAlphaAccepted] = useLocalStorageState( + 'mangoAlphaAccepted-2.0', + false + ) return (
- next - Mango Markets UI V2 +
+ next + next + next +
- This is an unaudited alpha release of Mango Markets. The software is - provided 'AS IS' without warranty of any kind. + SOL and SRM now available with USDC! +
+
+ Visit{' '} + + https://usdt.mango.markets + {' '} + to access the USDT mango group. +
+
+ Mango Markets is unaudited software. Use at your own risk.
diff --git a/package.json b/package.json index 9e9d377a..b59a1209 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ } }, "dependencies": { - "@blockworks-foundation/mango-client": "https://github.com/blockworks-foundation/mango-client-ts#5_tokens", + "@blockworks-foundation/mango-client": "^1.0.0", "@emotion/react": "^11.1.5", "@emotion/styled": "^11.1.5", "@headlessui/react": "^1.2.0", diff --git a/pages/account.tsx b/pages/account.tsx index 989654ca..12cccb46 100644 --- a/pages/account.tsx +++ b/pages/account.tsx @@ -50,7 +50,7 @@ export default function Account() { {selectedMarginAccount ? (
-
Acct Owner
+
Owner
{ - const [alphaAccepted] = useLocalStorageState('mangoAlphaAccepted', false) + const [alphaAccepted] = useLocalStorageState('mangoAlphaAccepted-2.0', false) return (
diff --git a/yarn.lock b/yarn.lock index 5569267a..eb7127d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -986,9 +986,10 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@blockworks-foundation/mango-client@https://github.com/blockworks-foundation/mango-client-ts#5_tokens": - version "0.1.19" - resolved "https://github.com/blockworks-foundation/mango-client-ts#e0627fcd34b06844ede05f65317e8c7ce9d2b29d" +"@blockworks-foundation/mango-client@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-client/-/mango-client-1.0.0.tgz#d298fff4e3e83a954532a5402e7d997118487aa5" + integrity sha512-WCq+M6ynSOvHqD1977AVeEyyu/qZrC7AsqTTULDpM55pdXwwiwfNBHyzzTEvTpEmoJJJjh4kRimhnJrmROLb6g== dependencies: "@project-serum/common" "^0.0.1-beta.3" "@project-serum/serum" "^0.13.20" @@ -2514,9 +2515,9 @@ boolbase@^1.0.0, boolbase@~1.0.0: resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= -"borsh@https://github.com/defactojob/borsh-js#field-mapper": +"borsh@git+https://github.com/defactojob/borsh-js.git#field-mapper": version "0.3.1" - resolved "https://github.com/defactojob/borsh-js#33a0d24af281112c0a48efb3fa503f3212443de9" + resolved "git+https://github.com/defactojob/borsh-js.git#33a0d24af281112c0a48efb3fa503f3212443de9" dependencies: "@types/bn.js" "^4.11.5" bn.js "^5.0.0"