Skip to content

Commit

Permalink
fix: styles and content
Browse files Browse the repository at this point in the history
  • Loading branch information
marslavish committed Feb 12, 2025
1 parent 129e5eb commit 27b7f99
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 73 deletions.
2 changes: 1 addition & 1 deletion templates/chain-admin/components/common/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Footer = () => {
gap="4px"
>
<Text color="$blackAlpha500" fontSize="12px" fontWeight="500">
© {new Date().getFullYear()} Cosmology
© {new Date().getFullYear()} Hyperweb
</Text>
{isMobile ? <TextDivider /> : <SocialLinks />}
<Link href="/disclaimer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const ChainDropdown = () => {
width: isMobile ? '130px' : '260px',
}}
>
{(starshipChains?.chains ?? []).map((c) => (
{(starshipChains?.v2.chains ?? []).map((c) => (
<Combobox.Item key={c.chainName} textValue={c.prettyName}>
<Stack
direction="horizontal"
Expand Down
26 changes: 13 additions & 13 deletions templates/chain-admin/components/common/Sidebar/SidebarContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { useCopyToClipboard, useAddHyperwebChain } from '@/hooks';
export const SidebarContent = ({ onClose }: { onClose: () => void }) => {
const { isHyperwebAdded } = useAddHyperwebChain();
const poweredByLogoSrc = useColorModeValue(
'/logos/cosmology.svg',
'/logos/cosmology-dark.svg'
'/logos/hyperweb-logo.svg',
'/logos/hyperweb-logo-dark.svg'
);

return (
Expand Down Expand Up @@ -44,7 +44,7 @@ export const SidebarContent = ({ onClose }: { onClose: () => void }) => {
alt="cosmology"
width="0"
height="0"
style={{ width: '100px', height: 'auto' }}
style={{ width: '90px', height: 'auto' }}
/>
</Box>
</Box>
Expand All @@ -57,6 +57,12 @@ const ConnectButton = () => {
const { isCopied, copyToClipboard } = useCopyToClipboard();
const { connect, disconnect, address, wallet } = useChain(selectedChain);

const walletInfo = wallet?.info;
const walletLogo =
typeof walletInfo?.logo === 'string'
? walletInfo.logo
: walletInfo.logo.major || walletInfo.logo.minor;

return (
<>
{address ? (
Expand All @@ -67,21 +73,15 @@ const ConnectButton = () => {
borderTopRightRadius={0}
borderBottomRightRadius={0}
leftIcon={
wallet?.logo ? (
walletInfo && walletLogo ? (
<Image
src={
typeof wallet.logo === 'string'
? wallet.logo
: wallet.logo.major || wallet.logo.minor
}
alt={wallet.prettyName}
src={walletLogo}
alt={walletInfo.prettyName}
width="0"
height="0"
style={{ width: '20px', height: 'auto' }}
/>
) : (
'checkboxCircle'
)
) : undefined
}
rightIcon={isCopied ? 'checkLine' : 'copy'}
iconColor={isCopied ? '$textSuccess' : 'inherit'}
Expand Down
6 changes: 1 addition & 5 deletions templates/chain-admin/config/products.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
export type ProductCategory =
| 'cosmwasm'
| 'cosmos-sdk'
| 'frontend'
| 'testing';
export type ProductCategory = 'cosmos-sdk' | 'frontend' | 'testing';

export type Product = {
name: string;
Expand Down
1 change: 0 additions & 1 deletion templates/chain-admin/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import '../styles/globals.css';
import '@interchain-ui/react/styles';
import '@interchain-ui/react/globalStyles';

import type { AppProps } from 'next/app';
import { ChainProvider } from '@interchain-kit/react';
Expand Down
4 changes: 0 additions & 4 deletions templates/chain-admin/pages/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ const tabs: Tab[] = [
label: 'All',
category: null,
},
{
label: 'CosmWasm',
category: 'cosmwasm',
},
{
label: 'Cosmos SDK',
category: 'cosmos-sdk',
Expand Down
18 changes: 0 additions & 18 deletions templates/chain-admin/public/logos/cosmology-dark.svg

This file was deleted.

18 changes: 0 additions & 18 deletions templates/chain-admin/public/logos/cosmology.svg

This file was deleted.

Loading

0 comments on commit 27b7f99

Please sign in to comment.