Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(cosmograph): lib state order issue #1320

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove auth action bar on graph pages
happylolonly committed Sep 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 74023e9f4e4e590768a70c75367ea75dd21e2345
7 changes: 5 additions & 2 deletions src/components/actionBar/index.tsx
Original file line number Diff line number Diff line change
@@ -62,6 +62,7 @@ function ActionBar({ children, text, onClickBack, button }: Props) {
const noAccount = !defaultAccount.account;
const noPassport = CHAIN_ID === Networks.BOSTROM && !passport;

// FIXME: refactor
const exception =
(!location.pathname.includes('/keys') &&
!location.pathname.includes('/drive') &&
@@ -87,7 +88,8 @@ function ActionBar({ children, text, onClickBack, button }: Props) {
(noAccount || noPassport) &&
// maybe change to props
exception &&
!location.pathname.includes(routes.gift.path)
!location.pathname.includes(routes.gift.path) &&
!location.pathname.includes('/brain') // both full and robot
) {
return (
<ActionBarContainer>
@@ -103,7 +105,8 @@ function ActionBar({ children, text, onClickBack, button }: Props) {
if (
!signerReady &&
exception &&
!location.pathname.includes(routes.gift.path)
!location.pathname.includes(routes.gift.path) &&
!location.pathname.includes('/brain') // both full and robot
) {
const activeAddress =
defaultAccount.account?.cyber.name ||