Skip to content

Commit

Permalink
Revert "feat: add radix, theme and emotion" (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e authored Oct 26, 2023
1 parent 8d0a294 commit eae6dec
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 125 deletions.
24 changes: 8 additions & 16 deletions front/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
import "@rainbow-me/rainbowkit/styles.css";
import "@radix-ui/themes/styles.css";
import { Providers } from "./providers";
import { Theme, ThemePanel } from "@radix-ui/themes";
import ThemeProvider from "@/components/ThemeProvider.tsx";
import '@rainbow-me/rainbowkit/styles.css'
import { Providers } from './providers'

export const metadata = {
title: "wagmi",
};
title: 'wagmi',
}

export default function RootLayout({
children,
}: {
children: React.ReactNode;
children: React.ReactNode
}) {
return (
<html lang="en" suppressHydrationWarning>
<html lang="en">
<body>
<ThemeProvider attribute="class">
<Theme>
<Providers>{children}</Providers>
<ThemePanel />
</Theme>
</ThemeProvider>
<Providers>{children}</Providers>
</body>
</html>
);
)
}
181 changes: 89 additions & 92 deletions front/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,99 +1,96 @@
import { Box, Flex } from "@radix-ui/themes";
import { Account } from "../components/Account";
import { Balance } from "../components/Balance";
import { BlockNumber } from "../components/BlockNumber";
import { ConnectButton } from "../components/ConnectButton";
import { Connected } from "../components/Connected";
import { NetworkSwitcher } from "../components/NetworkSwitcher";
import { ReadContract } from "../components/ReadContract";
import { ReadContracts } from "../components/ReadContracts";
import { ReadContractsInfinite } from "../components/ReadContractsInfinite";
import { SendTransaction } from "../components/SendTransaction";
import { SendTransactionPrepared } from "../components/SendTransactionPrepared";
import { SignMessage } from "../components/SignMessage";
import { SignTypedData } from "../components/SignTypedData";
import { Token } from "../components/Token";
import { WatchContractEvents } from "../components/WatchContractEvents";
import { WatchPendingTransactions } from "../components/WatchPendingTransactions";
import { WriteContract } from "../components/WriteContract";
import { WriteContractPrepared } from "../components/WriteContractPrepared";
import { Account } from '../components/Account'
import { Balance } from '../components/Balance'
import { BlockNumber } from '../components/BlockNumber'
import { ConnectButton } from '../components/ConnectButton'
import { Connected } from '../components/Connected'
import { NetworkSwitcher } from '../components/NetworkSwitcher'
import { ReadContract } from '../components/ReadContract'
import { ReadContracts } from '../components/ReadContracts'
import { ReadContractsInfinite } from '../components/ReadContractsInfinite'
import { SendTransaction } from '../components/SendTransaction'
import { SendTransactionPrepared } from '../components/SendTransactionPrepared'
import { SignMessage } from '../components/SignMessage'
import { SignTypedData } from '../components/SignTypedData'
import { Token } from '../components/Token'
import { WatchContractEvents } from '../components/WatchContractEvents'
import { WatchPendingTransactions } from '../components/WatchPendingTransactions'
import { WriteContract } from '../components/WriteContract'
import { WriteContractPrepared } from '../components/WriteContractPrepared'

export function Page() {
return (
<Flex align="center" direction="column">
<Box>
<h1>wagmi + RainbowKit + Next.js</h1>
<>
<h1>wagmi + RainbowKit + Next.js</h1>

<ConnectButton />
<ConnectButton />

<Connected>
<hr />
<h2>Network</h2>
<NetworkSwitcher />
<br />
<hr />
<h2>Account</h2>
<Account />
<br />
<hr />
<h2>Balance</h2>
<Balance />
<br />
<hr />
<h2>Block Number</h2>
<BlockNumber />
<br />
<hr />
<h2>Read Contract</h2>
<ReadContract />
<br />
<hr />
<h2>Read Contracts</h2>
<ReadContracts />
<br />
<hr />
<h2>Read Contracts Infinite</h2>
<ReadContractsInfinite />
<br />
<hr />
<h2>Send Transaction</h2>
<SendTransaction />
<br />
<hr />
<h2>Send Transaction (Prepared)</h2>
<SendTransactionPrepared />
<br />
<hr />
<h2>Sign Message</h2>
<SignMessage />
<br />
<hr />
<h2>Sign Typed Data</h2>
<SignTypedData />
<br />
<hr />
<h2>Token</h2>
<Token />
<br />
<hr />
<h2>Watch Contract Events</h2>
<WatchContractEvents />
<br />
<hr />
<h2>Watch Pending Transactions</h2>
<WatchPendingTransactions />
<br />
<hr />
<h2>Write Contract</h2>
<WriteContract />
<br />
<hr />
<h2>Write Contract (Prepared)</h2>
<WriteContractPrepared />
</Connected>
</Box>
</Flex>
);
<Connected>
<hr />
<h2>Network</h2>
<NetworkSwitcher />
<br />
<hr />
<h2>Account</h2>
<Account />
<br />
<hr />
<h2>Balance</h2>
<Balance />
<br />
<hr />
<h2>Block Number</h2>
<BlockNumber />
<br />
<hr />
<h2>Read Contract</h2>
<ReadContract />
<br />
<hr />
<h2>Read Contracts</h2>
<ReadContracts />
<br />
<hr />
<h2>Read Contracts Infinite</h2>
<ReadContractsInfinite />
<br />
<hr />
<h2>Send Transaction</h2>
<SendTransaction />
<br />
<hr />
<h2>Send Transaction (Prepared)</h2>
<SendTransactionPrepared />
<br />
<hr />
<h2>Sign Message</h2>
<SignMessage />
<br />
<hr />
<h2>Sign Typed Data</h2>
<SignTypedData />
<br />
<hr />
<h2>Token</h2>
<Token />
<br />
<hr />
<h2>Watch Contract Events</h2>
<WatchContractEvents />
<br />
<hr />
<h2>Watch Pending Transactions</h2>
<WatchPendingTransactions />
<br />
<hr />
<h2>Write Contract</h2>
<WriteContract />
<br />
<hr />
<h2>Write Contract (Prepared)</h2>
<WriteContractPrepared />
</Connected>
</>
)
}

export default Page;
export default Page
13 changes: 0 additions & 13 deletions front/src/components/ThemeProvider.tsx/index.tsx

This file was deleted.

5 changes: 1 addition & 4 deletions front/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit eae6dec

Please sign in to comment.