diff --git a/src/Gateway/ContactUsPage.jsx b/src/Gateway/ContactUsPage.jsx index 23957d31..684d51c7 100644 --- a/src/Gateway/ContactUsPage.jsx +++ b/src/Gateway/ContactUsPage.jsx @@ -1,18 +1,15 @@ const urls = { - devHub: "https://near.org/devhub.near/widget/app", discord: "http://near.chat", discourse: "https://gov.near.org", docs: "https://docs.near.org", - facebook: "https://www.facebook.com/NEARProtocol", getFunding: "https://near.org/ecosystem/get-funding", github: "https://github.com/near", hackenproof: "https://hackenproof.com/near", helpCenter: "https://nearhelp.zendesk.com/hc/en-us", nearWallet: "https://wallet.near.org/", nearWeek: "https://subscribe.nearweek.com/", - reddit: "https://www.reddit.com/r/nearprotocol", supportRequest: "https://nearhelp.zendesk.com/hc/en-us/requests/new", - telegram: "https://t.me/cryptonear", + telegram: "https://t.me/neardev", twitter: "https://twitter.com/nearprotocol", wechat: "https://pages.near.org/wechat", withdrawNearFunds: @@ -21,11 +18,6 @@ const urls = { }; const channels = [ - { - icon: "ph-users", - label: "DevHub", - url: urls.devHub, - }, { icon: "ph-telegram-logo", label: "Telegram", @@ -36,31 +28,6 @@ const channels = [ label: "Discord", url: urls.discord, }, - { - icon: "ph-chats-teardrop", - label: "Discourse", - url: urls.discourse, - }, - { - icon: "ph-facebook-logo", - label: "Facebook", - url: urls.facebook, - }, - { - icon: "ph-reddit-logo", - label: "Reddit", - url: urls.reddit, - }, - { - icon: "ph-wifi-high", - label: "Warpcast", - url: "https://warpcast.com/~/channel/near", - }, - { - icon: "ph-youtube-logo", - label: "YouTube", - url: urls.youtube, - }, { icon: "ph-github-logo", label: "GitHub", @@ -350,27 +317,33 @@ return ( - Help Center + Chat Support - Find articles about popular services and topics. + Chat with our developers and get live support - - - Launch help center + + + Telegram Support + + + + Discord Support + - Resolve an issue + Office Hours - Get in touch with our Customer Care Team. + Jump in a voice call with our developers + Thursdays - 11hs & 18hs (UTC) - + - Launch support form + Join our Discord diff --git a/src/Gateway/Home.jsx b/src/Gateway/Home.jsx index 72dd9107..94298f8b 100644 --- a/src/Gateway/Home.jsx +++ b/src/Gateway/Home.jsx @@ -395,23 +395,21 @@ return (

Welcome

- Start building right away with easy to use tutorials. + Start building right away and get in contact with us.
diff --git a/src/Navigation/NameDropdown.jsx b/src/Navigation/NameDropdown.jsx new file mode 100644 index 00000000..2a7ff1df --- /dev/null +++ b/src/Navigation/NameDropdown.jsx @@ -0,0 +1,58 @@ +let { accountId, profile, availableStorage, withdrawTokens, logOut } = props; + +accountId = accountId ?? context.accountId; +profile = profile ?? Social.get(`${accountId}/profile/**`, "final"); + +const profilePage = `/${REPL_ACCOUNT}/widget/ProfilePage?accountId=${accountId}`; + +const handleWithdraw = () => { + if (withdrawTokens) { + withdrawTokens(); + } else { + console.log("withdrawTokens function not provided"); + } +}; + +const handleLogOut = () => { + if (logOut) { + logOut(); + } else { + console.log("logOut function not provided"); + } +}; + +const menuItems = [ + { + name: "Profile", + iconLeft: "ph-duotone ph-user", + href: profilePage, + }, + { + name: "Settings", + iconLeft: "ph-duotone ph-gear", + href: "/settings", + }, + { + name: `Withdraw ${availableStorage ?? 0}kb`, + iconLeft: "ph-duotone ph-bank", + onSelect: handleWithdraw, + disabled: !availableStorage, + }, + { + name: "Log out", + iconLeft: "ph-duotone ph-sign-out", + onSelect: handleLogOut, + }, +]; + +return ( + +);