Skip to content

Commit

Permalink
feat: header adding (#406)
Browse files Browse the repository at this point in the history
* feat: header adding

* ci: added testnet flag
  • Loading branch information
MrX-SNX authored Aug 22, 2024
1 parent 6d001b8 commit 024e0df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: yarn workspaces focus @snx-v3/governance
working-directory: v3ui

- run: yarn workspace @snx-v3/governance build
- run: yarn workspace @snx-v3/governance build TESTNET=true
working-directory: v3ui

- run: rm -rf ./governance/*
Expand Down
4 changes: 1 addition & 3 deletions governance/ui/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ export function Header() {
<SNXHeaderIcon />
</Show>
</Flex>
{(process.env.TESTNET === 'true' || process.env.DEV === 'true') && (
<Link href="/#/admin">Admin</Link>
)}
<Link href="/#/admin">Admin</Link>
<PeriodCountdown council={councils[0].slug} />
{activeWallet && <NetworkController />}

Expand Down
2 changes: 1 addition & 1 deletion governance/ui/src/utils/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const motherShipProvider = (networkId?: number) => {
? process.env.CI_RPC_MOTHERSHIP
: networkId === 13001
? 'https://testnet.snaxchain.io/'
: 'https://mainnet.snaxchain.io/'
: 'https://testnet.snaxchain.io/'
);
};

0 comments on commit 024e0df

Please sign in to comment.