From 16d917b3298276c7bf6c8ea3a8eedb7c1c661683 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Thu, 9 Nov 2023 17:49:53 +0500 Subject: [PATCH 1/4] Add login functionality to login page --- apps/homepage/widget/login.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/homepage/widget/login.jsx b/apps/homepage/widget/login.jsx index 9d05322b..33e6a804 100644 --- a/apps/homepage/widget/login.jsx +++ b/apps/homepage/widget/login.jsx @@ -50,7 +50,8 @@ const LoginContainer = styled.div` line-height: 100%; /* 32px */ } - a { + button { + all: unset; display: flex; padding: 16px 20px; justify-content: center; @@ -84,7 +85,7 @@ const LoginView = () => {

Designed to connect and empower builders in a multi-chain ecosystem

- Login + From 22634a093dc2b0143adf3574c42b7a7dd5218ba1 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Thu, 9 Nov 2023 17:52:31 +0500 Subject: [PATCH 2/4] Change documentation link --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 7d5baa6e..10030d0d 100644 --- a/src/App.js +++ b/src/App.js @@ -39,7 +39,7 @@ import ProposePage from "./pages/ProposePage"; import { Navbar } from "./components/navigation/Navbar"; export const refreshAllowanceObj = {}; -const documentationHref = "https://github.com/NearBuilders/docs"; +const documentationHref = "https://docs.near.org/bos"; function App() { const [connected, setConnected] = useState(false); From e1d91e2ca174ac1861be7ddddaf124a3fa954377 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Thu, 9 Nov 2023 17:57:17 +0500 Subject: [PATCH 3/4] Reload join page on signin --- src/pages/JoinPage.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/JoinPage.js b/src/pages/JoinPage.js index e5ed554a..9159a52a 100644 --- a/src/pages/JoinPage.js +++ b/src/pages/JoinPage.js @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect } from "react"; import { UserDropdown } from "../components/navigation/desktop/UserDropdown"; import { Widget } from "near-social-vm"; import { useBosLoaderStore } from "../stores/bos-loader"; @@ -9,7 +9,16 @@ export default function JoinPage(props) { const CurrentView = props.signedIn ? "buildhub.near/widget/create-something" : "buildhub.near/widget/login"; - + + useEffect(() => { + if ( + props.signedIn === true && + CurrentView === "buildhub.near/widget/login" + ) { + window.location.reload(); + } + }, [props.signedIn]); + return (
{props.signedIn && ( From e9a840f169a0958065188f7c4da508016c128c30 Mon Sep 17 00:00:00 2001 From: Zeeshan Ahmad Date: Thu, 9 Nov 2023 17:59:16 +0500 Subject: [PATCH 4/4] Revert changes --- src/pages/JoinPage.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/pages/JoinPage.js b/src/pages/JoinPage.js index 9159a52a..48cb9a10 100644 --- a/src/pages/JoinPage.js +++ b/src/pages/JoinPage.js @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React from "react"; import { UserDropdown } from "../components/navigation/desktop/UserDropdown"; import { Widget } from "near-social-vm"; import { useBosLoaderStore } from "../stores/bos-loader"; @@ -10,15 +10,6 @@ export default function JoinPage(props) { ? "buildhub.near/widget/create-something" : "buildhub.near/widget/login"; - useEffect(() => { - if ( - props.signedIn === true && - CurrentView === "buildhub.near/widget/login" - ) { - window.location.reload(); - } - }, [props.signedIn]); - return (
{props.signedIn && (