Skip to content

Commit

Permalink
fix: page export
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti committed Oct 30, 2023
1 parent b9fdac4 commit 4715e5c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/demo-nextjs-app-router/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Error(props: ErrorProps) {
const DEFAULT_PROMPT =
'a city landscape of a cyberpunk metropolis, raining, purple, pink and teal neon lights, highly detailed, uhd';

export function Index() {
export default function Home() {
// @snippet:start("client.ui.state")
// Input state
const [prompt, setPrompt] = useState<string>(DEFAULT_PROMPT);
Expand Down Expand Up @@ -168,5 +168,3 @@ export function Index() {
</div>
);
}

export default Index;

0 comments on commit 4715e5c

Please sign in to comment.