Skip to content

Commit 27b7f99

Browse files
committed
fix: styles and content
1 parent 129e5eb commit 27b7f99

File tree

12 files changed

+63
-73
lines changed

12 files changed

+63
-73
lines changed

templates/chain-admin/components/common/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const Footer = () => {
2121
gap="4px"
2222
>
2323
<Text color="$blackAlpha500" fontSize="12px" fontWeight="500">
24-
© {new Date().getFullYear()} Cosmology
24+
© {new Date().getFullYear()} Hyperweb
2525
</Text>
2626
{isMobile ? <TextDivider /> : <SocialLinks />}
2727
<Link href="/disclaimer">

templates/chain-admin/components/common/Header/ChainDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const ChainDropdown = () => {
4848
width: isMobile ? '130px' : '260px',
4949
}}
5050
>
51-
{(starshipChains?.chains ?? []).map((c) => (
51+
{(starshipChains?.v2.chains ?? []).map((c) => (
5252
<Combobox.Item key={c.chainName} textValue={c.prettyName}>
5353
<Stack
5454
direction="horizontal"

templates/chain-admin/components/common/Sidebar/SidebarContent.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { useCopyToClipboard, useAddHyperwebChain } from '@/hooks';
1313
export const SidebarContent = ({ onClose }: { onClose: () => void }) => {
1414
const { isHyperwebAdded } = useAddHyperwebChain();
1515
const poweredByLogoSrc = useColorModeValue(
16-
'/logos/cosmology.svg',
17-
'/logos/cosmology-dark.svg'
16+
'/logos/hyperweb-logo.svg',
17+
'/logos/hyperweb-logo-dark.svg'
1818
);
1919

2020
return (
@@ -44,7 +44,7 @@ export const SidebarContent = ({ onClose }: { onClose: () => void }) => {
4444
alt="cosmology"
4545
width="0"
4646
height="0"
47-
style={{ width: '100px', height: 'auto' }}
47+
style={{ width: '90px', height: 'auto' }}
4848
/>
4949
</Box>
5050
</Box>
@@ -57,6 +57,12 @@ const ConnectButton = () => {
5757
const { isCopied, copyToClipboard } = useCopyToClipboard();
5858
const { connect, disconnect, address, wallet } = useChain(selectedChain);
5959

60+
const walletInfo = wallet?.info;
61+
const walletLogo =
62+
typeof walletInfo?.logo === 'string'
63+
? walletInfo.logo
64+
: walletInfo.logo.major || walletInfo.logo.minor;
65+
6066
return (
6167
<>
6268
{address ? (
@@ -67,21 +73,15 @@ const ConnectButton = () => {
6773
borderTopRightRadius={0}
6874
borderBottomRightRadius={0}
6975
leftIcon={
70-
wallet?.logo ? (
76+
walletInfo && walletLogo ? (
7177
<Image
72-
src={
73-
typeof wallet.logo === 'string'
74-
? wallet.logo
75-
: wallet.logo.major || wallet.logo.minor
76-
}
77-
alt={wallet.prettyName}
78+
src={walletLogo}
79+
alt={walletInfo.prettyName}
7880
width="0"
7981
height="0"
8082
style={{ width: '20px', height: 'auto' }}
8183
/>
82-
) : (
83-
'checkboxCircle'
84-
)
84+
) : undefined
8585
}
8686
rightIcon={isCopied ? 'checkLine' : 'copy'}
8787
iconColor={isCopied ? '$textSuccess' : 'inherit'}

templates/chain-admin/config/products.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
export type ProductCategory =
2-
| 'cosmwasm'
3-
| 'cosmos-sdk'
4-
| 'frontend'
5-
| 'testing';
1+
export type ProductCategory = 'cosmos-sdk' | 'frontend' | 'testing';
62

73
export type Product = {
84
name: string;

templates/chain-admin/pages/_app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import '../styles/globals.css';
22
import '@interchain-ui/react/styles';
3-
import '@interchain-ui/react/globalStyles';
43

54
import type { AppProps } from 'next/app';
65
import { ChainProvider } from '@interchain-kit/react';

templates/chain-admin/pages/docs.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ const tabs: Tab[] = [
1616
label: 'All',
1717
category: null,
1818
},
19-
{
20-
label: 'CosmWasm',
21-
category: 'cosmwasm',
22-
},
2319
{
2420
label: 'Cosmos SDK',
2521
category: 'cosmos-sdk',

templates/chain-admin/public/logos/cosmology-dark.svg

Lines changed: 0 additions & 18 deletions
This file was deleted.

templates/chain-admin/public/logos/cosmology.svg

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)