Skip to content

Commit

Permalink
Merge pull request #1 from mansu10/main
Browse files Browse the repository at this point in the history
feat: add logo
  • Loading branch information
pride4215 authored Aug 15, 2024
2 parents 23ba281 + 0c8089f commit 32d1852
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion packages/ui/src/components/ChainIcon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ import jackalLogoDark from 'shared-utils/assets/logos/jackal-dark.svg?url';
import jackalLogoLight from 'shared-utils/assets/logos/jackal-light.svg?url';
import archwayLogoDark from 'shared-utils/assets/logos/archway-dark.svg?url';
import archwayLogoLight from 'shared-utils/assets/logos/archway-light.svg?url';
import tagfusionLogoLight from 'shared-utils/assets/logos/tagfusion-light.png';

interface IconProps extends Omit<ImageProps, 'id' | 'src'> {
type: 'icon' | 'logo';
Expand All @@ -106,7 +107,8 @@ const ChainIcon = ({
const { classes, cx } = useStyles();

let [iconDark, iconLight] =
type === 'icon' ? [baseIconLight, baseIconLight] : [baseLogoLight, baseLogoLight];
// type === 'icon' ? [baseIconLight, baseIconLight] : [baseLogoLight, baseLogoLight];
type === 'icon' ? [baseIconLight, baseIconLight] : [tagfusionLogoLight, tagfusionLogoLight];
switch (chainName) {
case 'agoric':
[iconDark, iconLight] =
Expand Down
30 changes: 15 additions & 15 deletions packages/ui/src/components/nav/components/menu_items/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ export const getMenuItems = () => {
url: BLOCKS,
icon: <BlockIcon {...iconProps} />,
},
{
key: 'validators',
url: VALIDATORS,
icon: <UserIcon {...iconProps} />,
},
// {
// key: 'validators',
// url: VALIDATORS,
// icon: <UserIcon {...iconProps} />,
// },
{
key: 'transactions',
url: TRANSACTIONS,
icon: <TransactionIcon {...iconProps} />,
},
{
key: 'proposals',
url: PROPOSALS,
icon: <ProposalsIcon {...iconProps} />,
},
{
key: 'params',
url: PARAMS,
icon: <ParamIcon {...iconProps} />,
},
// {
// key: 'proposals',
// url: PROPOSALS,
// icon: <ProposalsIcon {...iconProps} />,
// },
// {
// key: 'params',
// url: PARAMS,
// icon: <ParamIcon {...iconProps} />,
// },
];
};

0 comments on commit 32d1852

Please sign in to comment.