-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
333 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
import { Providers } from "components/providers"; | ||
import { ReactNode } from "react"; | ||
import { Metadata } from "next"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
import "./globals.css"; | ||
import { Providers } from "components/providers"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Cartridge Controller", | ||
description: "Cartridge Controller Example", | ||
}; | ||
|
||
export default function RootLayout({ children }: PropsWithChildren) { | ||
export default function RootLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<html lang="en" suppressHydrationWarning> | ||
<body className="bg-background text-foreground"> | ||
<body> | ||
<Providers>{children}</Providers> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export const metadata: Metadata = { | ||
title: "Cartridge Controller - Example (Next.js)", | ||
icons: { | ||
icon: "favicon.ico", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { FC } from 'react'; | ||
|
||
const NotFound: FC = () => { | ||
return ( | ||
<div className="flex min-h-screen flex-col items-center justify-center"> | ||
<h1>404 - Page Not Found</h1> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
import { Transfer } from "components/Transfer"; | ||
import { ManualTransferEth } from "components/ManualTransferEth"; | ||
import { InvalidTxn } from "components/InvalidTxn"; | ||
import { SignMessage } from "components/SignMessage"; | ||
import { DelegateAccount } from "components/DelegateAccount"; | ||
"use client"; | ||
|
||
import { FC } from "react"; | ||
|
||
import { ColorModeToggle } from "components/ColorModeToggle"; | ||
import { Profile } from "components/Profile"; | ||
import { LookupControllers } from "components/LookupControllers"; | ||
import Header from "components/Header"; | ||
// import { DelegateAccount } from "components/DelegateAccount"; | ||
// import { InvalidTxn } from "components/InvalidTxn"; | ||
// import { LookupControllers } from "components/LookupControllers"; | ||
// import { ManualTransferEth } from "components/ManualTransferEth"; | ||
// import { Profile } from "components/Profile"; | ||
// import { SignMessage } from "components/SignMessage"; | ||
// import { Transfer } from "components/Transfer"; | ||
|
||
export default function Home() { | ||
const Home: FC = () => { | ||
return ( | ||
<div className="flex flex-col p-4 gap-4"> | ||
<main className="flex flex-col p-4 gap-4"> | ||
<div className="flex justify-between"> | ||
<h2 className="text-3xl font-bold underline text-primary"> | ||
Controller Example (Next.js) | ||
</h2> | ||
<ColorModeToggle /> | ||
</div> | ||
<Header /> | ||
<Profile /> | ||
{/* <Profile /> | ||
<Transfer /> | ||
<ManualTransferEth /> | ||
<DelegateAccount /> | ||
<InvalidTxn /> | ||
<SignMessage /> | ||
<LookupControllers /> | ||
</div> | ||
<LookupControllers /> */} | ||
</main> | ||
); | ||
} | ||
}; | ||
|
||
export default Home; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.