Skip to content

Commit

Permalink
feat: change skybridge.info with app.swingby.network (#5)
Browse files Browse the repository at this point in the history
* feat: change skybridge.info with app.swingby.network

* feat: adjust items
  • Loading branch information
ryenguyen7411 authored Jul 7, 2023
1 parent 963b05f commit 857fe89
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/FancyButtons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const FancyButtons = ({ items = ['telegram'] }: Props) => {
variant="tertiary"
size="city"
shape="fit"
href="https://skybridge.info"
href="https://app.swingby.network"
>
Explorer
</StyledExplorerButton>
Expand Down
8 changes: 6 additions & 2 deletions src/components/SwingbyHeader/component.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ const Common = () => (
</>
}
items={[
{ key: 'stake', href: 'https://skybridge.info/pool', render: 'Stake and Earn BTC' },
{ key: 'metanodes', href: 'https://skybridge.info/metanodes', render: 'Metanodes' },
{
key: 'stake',
href: 'https://app.swingby.network/liquidity',
render: 'Stake and Earn BTC',
},
{ key: 'metanodes', href: 'https://app.swingby.network/metanodes', render: 'Metanodes' },
{ key: 'telegram-and-explorer', render: <FancyButtons items={['telegram']} /> },
]}
/>
Expand Down
21 changes: 8 additions & 13 deletions src/components/SwingbyHeader/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ type Props = {

const TOGGLE_ID = 'sb-header-menu-toggle';
export const DEFAULT_ITEMS: Props['items'] = [
{ render: 'Explorer', key: 'explorer', href: 'https://skybridge.info' },
{ render: 'Liquidity', key: 'liquidity', href: 'https://skybridge.info/pool' },
{ render: 'Farm', key: 'farm', href: 'https://farm.swingby.network' },
{ render: 'Metanodes', key: 'metanodes', href: 'https://skybridge.info/metanodes' },
{ render: 'ERC20 Bridge', key: 'erc20-bridge', href: 'https://bridge.swingby.network' },
{ render: 'Swap', key: 'swap', href: 'https://app.swingby.network' },
{ render: 'Liquidity', key: 'liquidity', href: 'https://app.swingby.network/liquidity' },
{ render: 'Explorer', key: 'explorer', href: 'https://app.swingby.network/explorer' },
{ render: 'Metanodes', key: 'metanodes', href: 'https://app.swingby.network/metanodes' },
{ render: 'DAO', key: 'dao', href: 'https://dao.swingby.network/' },
];

Expand Down Expand Up @@ -76,26 +75,22 @@ export const Component = ({

return itemsParam.map((it) => {
if (it === DEFAULT_ITEMS[0]) {
return { ...it, href: `https://skybridge.info/${locale}` };
return { ...it, href: `https://app.swingby.network/${locale}/swap` };
}

if (it === DEFAULT_ITEMS[1]) {
return { ...it, href: `https://skybridge.info/${locale}/pool` };
return { ...it, href: `https://app.swingby.network/${locale}/liquidity` };
}

if (it === DEFAULT_ITEMS[2]) {
return { ...it, href: `https://farm.swingby.network/${locale}` };
return { ...it, href: `https://farm.swingby.network/${locale}/explorer` };
}

if (it === DEFAULT_ITEMS[3]) {
return { ...it, href: `https://skybridge.info/${locale}/metanodes` };
return { ...it, href: `https://app.swingby.network/${locale}/metanodes` };
}

if (it === DEFAULT_ITEMS[4]) {
return { ...it, href: `https://bridge.swingby.network/${locale}` };
}

if (it === DEFAULT_ITEMS[5]) {
return { ...it, href: `https://dao.swingby.network/${locale}` };
}

Expand Down

0 comments on commit 857fe89

Please sign in to comment.