Skip to content

Commit

Permalink
RSC: Fix the RSA test project fixture (#9704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe authored Dec 14, 2023
1 parent b7115dd commit f7c7613
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { RscForm } from '@tobbe.dev/rsc-test'

import { Assets } from '@redwoodjs/vite/assets'
import { ProdRwRscServerGlobal } from '@redwoodjs/vite/rwRscGlobal'

import { Counter } from '../../components/Counter/Counter'
import { onSend } from './actions'
import { onSend } from './chat'
import { Form } from './Form'
// @ts-expect-error no types
import styles from './HomePage.module.css'

Expand All @@ -22,8 +20,7 @@ const HomePage = ({ name = 'Anonymous' }) => {
<Assets />
<div style={{ border: '3px red dashed', margin: '1em', padding: '1em' }}>
<h1 className={styles.title}>Hello {name}!!</h1>
<RscForm onSend={onSend} />
<Counter />
<Form onSend={onSend} />
</div>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use server'

import { randomWords } from './words'
import { randomWords } from '../../words'

export async function onSend(formData: FormData) {
const message = formData.get('message')
Expand Down

0 comments on commit f7c7613

Please sign in to comment.