Skip to content

Commit

Permalink
Revert "fix: nice to haves"
Browse files Browse the repository at this point in the history
This reverts commit 1adfa52.
  • Loading branch information
chalabi2 committed Dec 14, 2024
1 parent 02639ba commit 847190e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 95 deletions.
Binary file modified bun.lockb
Binary file not shown.
8 changes: 1 addition & 7 deletions components/factory/components/MyDenoms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,11 @@ export default function MyDenoms({
<MintIcon className="w-7 h-7 text-current opacity-50" />
</button>
<button
className="btn btn-md btn-outline btn-square btn-primary"
className="btn btn-md btn-outline btn-square btn-error"
disabled
>
<BurnIcon className="w-7 h-7 text-current opacity-50" />
</button>
<button
className="btn btn-md btn-outline btn-square btn-primary"
disabled
>
<TransferIcon className="w-7 h-7 text-current opacity-50" />
</button>
<button
className="btn btn-md btn-outline btn-square btn-info"
disabled
Expand Down
23 changes: 0 additions & 23 deletions components/icons/GitHubIcon.tsx

This file was deleted.

1 change: 0 additions & 1 deletion components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ export * from './BurnIcon';
export * from './MintIcon';
export * from './QuestionIcon';
export * from './SendTxIcon';
export * from './GitHubIcon';
15 changes: 6 additions & 9 deletions components/react/mobileNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export default function MobileNav() {
return (
<>
<div className="fixed top-0 left-0 right-0 z-40 p-3 bg-base-300 flex lg:hidden flex-row justify-between items-center">
<Link href="/">
<Image src="/logo.svg" height={38} width={38} alt="manifest" />
</Link>
<Image src="/logo.svg" height={38} width={38} alt="manifest" />
<label htmlFor="my-drawer" className="btn btn-sm btn-primary drawer-button">
<RiMenuUnfoldFill fontSize={'24px'} />
</label>
Expand All @@ -60,12 +58,11 @@ export default function MobileNav() {
<label htmlFor="my-drawer" aria-label="close sidebar" className="drawer-overlay"></label>
<ul className="menu p-4 w-80 min-h-full bg-[#F4F4FF] dark:bg-[#1D192D] space-y-3 text-base-content flex flex-col">
<div className="flex flex-row justify-between items-center">
<Link href="/">
<div className="flex flex-row gap-4 justify-between items-center">
<Image src={'/logo.svg'} alt="logo" width={42} height={42} />
<span className="text-2xl leading-tight text-balance">Alberto</span>
</div>
</Link>
<div className="flex flex-row gap-4 justify-between items-center">
<Image src={'/logo.svg'} alt="logo" width={42} height={42} />
<span className="text-2xl leading-tight text-balance">Alberto</span>
</div>

{/* Updated Theme Toggle */}
<label className="swap swap-rotate text-[#00000066] dark:text-[#FFFFFF66] hover:text-primary dark:hover:text-primary transition-all duration-300 ease-in-out">
<input
Expand Down
4 changes: 2 additions & 2 deletions components/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ export const IconWallet: React.FC<WalletSectionProps> = ({ chainName }) => {
onClick={
status === WalletStatus.Disconnected || status === WalletStatus.Rejected
? onClick
: onClick
: () => {}
}
className={`flex justify-center items-center w-8 h-8 hover:text-primary duration-200 ease-in-out `}
className={`flex justify-center items-center w-8 h-8 hover:text-primary duration-200 ease-in-out ${status === WalletStatus.Disconnected || status === WalletStatus.Rejected ? 'cursor-pointer' : 'cursor-default'}`}
>
<buttonData.icon className="w-8 h-8" />
</button>
Expand Down
58 changes: 5 additions & 53 deletions pages/factory/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletNotConnected, FactoryIcon, GithubIcon } from '@/components';
import { WalletNotConnected, FactoryIcon } from '@/components';
import MyDenoms from '@/components/factory/components/MyDenoms';
import {
useTokenBalances,
Expand All @@ -12,7 +12,6 @@ import Head from 'next/head';
import React, { useMemo } from 'react';
import { ExtendedMetadataSDKType } from '@/utils';
import env from '@/config/env';
import Link from 'next/link';

export default function Factory() {
const { address, isWalletConnected } = useChain(env.chain);
Expand Down Expand Up @@ -123,58 +122,11 @@ export default function Factory() {
address={address ?? ''}
/>
) : isError ? (
<section className="transition-opacity duration-300 h-[80vh] ease-in-out animate-fadeIn w-full flex items-center justify-center">
<div className="grid max-w-4xl bg-base-300 p-12 rounded-md w-full mx-auto gap-8 lg:grid-cols-12">
<div className="mr-auto place-self-center lg:col-span-7">
<h1 className="max-w-2xl mb-4 text-2xl font-extrabold tracking-tight leading-none md:text-3xl xl:text-4xl dark:text-white text-black">
Error loading tokens!
</h1>
<p className="max-w-2xl mb-6 font-light text-gray-500 lg:mb-8 md:text-lg lg:text-xl">
Please refresh the page and check the logs! Use the button to create an issue on
Github.
</p>
<div className="w-[50%]">
<Link
href="https://github.com/liftedinit/manifest-app/issues"
target="_blank"
rel="noopener noreferrer"
className="btn w-full border-0 duration-300 ease-in-out text-white btn-gradient"
>
<GithubIcon className="w-5 h-5 mr-2 hidden md:block" />
Open an issue
</Link>
</div>
</div>
<div className="hidden lg:mt-0 lg:ml-24 lg:col-span-5 lg:flex">
<FactoryIcon className="h-60 w-60 text-primary" />
</div>
</div>
</section>
<div className="text-center my-auto text-error">
Error loading tokens. Please try again.
</div>
) : !isDataReady ? (
<section className="transition-opacity duration-300 h-[80vh] ease-in-out animate-fadeIn w-full flex items-center justify-center">
<div className="grid max-w-4xl bg-base-300 p-12 rounded-md w-full mx-auto gap-8 lg:grid-cols-12">
<div className="mr-auto place-self-center lg:col-span-7">
<h1 className="max-w-2xl mb-4 text-2xl font-extrabold tracking-tight leading-none md:text-3xl xl:text-4xl dark:text-white text-black">
No factory tokens!
</h1>
<p className="max-w-2xl mb-6 font-light text-gray-500 lg:mb-8 md:text-lg lg:text-xl">
Click the button to create your own token!
</p>
<div className="w-[50%]">
<Link
href="/factory/create"
className="btn w-full border-0 duration-300 ease-in-out text-white btn-gradient"
>
<FactoryIcon className="w-5 h-5 mr-2 hidden md:block" />
Create a token
</Link>
</div>
</div>
<div className="hidden lg:mt-0 lg:ml-24 lg:col-span-5 lg:flex">
<FactoryIcon className="h-60 w-60 text-primary" />
</div>
</div>
</section>
<div className="text-center my-auto">No token data available.</div>
) : (
<MyDenoms
denoms={combinedData}
Expand Down

0 comments on commit 847190e

Please sign in to comment.