Skip to content

Commit

Permalink
removed unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
assetmantledevops committed Nov 28, 2024
1 parent a32d73f commit 9939fd6
Show file tree
Hide file tree
Showing 22 changed files with 49 additions and 1,746 deletions.
45 changes: 18 additions & 27 deletions components/common/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { Link, Box, Button, Icon, Text, useTheme, useColorModeValue } from '@interchain-ui/react';
import { dependencies } from '@/config';
import {
Box,
Button,
Icon,
Text,
useColorModeValue,
useTheme,
} from "@interchain-ui/react";

const stacks = ['Cosmos Kit', 'Next.js'];

const osmojs = dependencies[0];
const stacks = ["Cosmos Kit", "Next.js"];

export function Header() {
const { theme, setTheme } = useTheme();

const toggleColorMode = () => {
setTheme(theme === 'light' ? 'dark' : 'light');
setTheme(theme === "light" ? "dark" : "light");
};

return (
Expand All @@ -23,50 +27,37 @@ export function Header() {
}}
onClick={toggleColorMode}
>
<Icon name={useColorModeValue('moonLine', 'sunLine')} />
<Icon name={useColorModeValue("moonLine", "sunLine")} />
</Button>
</Box>

<Box textAlign="center">
<Text
as="h1"
fontWeight="$extrabold"
fontSize={{ mobile: '$6xl', tablet: '$10xl' }}
fontSize={{ mobile: "$6xl", tablet: "$10xl" }}
attributes={{
marginBottom: '$8',
marginBottom: "$8",
}}
>
Create Cosmos App
</Text>
<Text as="h2" fontWeight="$bold">
<Text
as="span"
fontSize={{ mobile: '$3xl', tablet: '$8xl', desktop: '$8xl' }}
fontSize={{ mobile: "$3xl", tablet: "$8xl", desktop: "$8xl" }}
>
Welcome to&nbsp;
</Text>
<Text
as="span"
fontSize={{ mobile: '$3xl', tablet: '$8xl', desktop: '$8xl' }}
color={useColorModeValue('$primary500', '$primary200')}
fontSize={{ mobile: "$3xl", tablet: "$8xl", desktop: "$8xl" }}
color={useColorModeValue("$primary500", "$primary200")}
>
{stacks.join(' + ')}
{' + '}

<Link
href={osmojs.name}
target="_blank"
rel="noreferrer"
attributes={{
color: useColorModeValue('$primary500', '$primary200'),
fontSize: { mobile: '$4xl', tablet: '$8xl', desktop: '$8xl' },
}}
>
{osmojs.name}
</Link>
{stacks.join(" + ")}
</Text>
</Text>
</Box>
</>
);
}
}
7 changes: 3 additions & 4 deletions components/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './swap';
export * from './common';
export * from './wallet';
export * from './Main';
export * from "./common";
export * from "./wallet";
export * from "./Main";
110 changes: 0 additions & 110 deletions components/swap/Swap.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions components/swap/SwapButton.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions components/swap/SwapDetails.tsx

This file was deleted.

89 changes: 0 additions & 89 deletions components/swap/SwapFromTo.tsx

This file was deleted.

Loading

0 comments on commit 9939fd6

Please sign in to comment.