Skip to content

Commit

Permalink
Even easier
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredpalmer committed Jun 15, 2023
1 parent 93d68c0 commit 840954c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Chat() {
const { messages, input, handleInputChange, handleSubmit } = useChat()

return (
<div className="mx-auto w-full max-w-md py-24 flex flex-col stretch">
<div>
{messages.map(m => (
<div key={m.id}>
{m.role}: {m.content}
Expand All @@ -62,7 +62,6 @@ export default function Chat() {

<form onSubmit={handleSubmit}>
<input
className="fixed w-full max-w-md bottom-0 border border-gray-300 rounded mb-8 shadow-xl p-2"
value={input}
placeholder="Say something..."
onChange={handleInputChange}
Expand Down

0 comments on commit 840954c

Please sign in to comment.