Skip to content

Commit 17dccf9

Browse files
committed
fix
1 parent a100020 commit 17dccf9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

components/components/chatInput/index.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ import classNames from "classnames";
77
import { GoArrowUpRight } from "react-icons/go";
88

99
const shortcutIdeas = [
10+
{
11+
id: 'Productcategories',
12+
label: 'Product categories',
13+
value: 'A list of product categories with image, name and description.',
14+
},
15+
{
16+
id: 'HeroSection',
17+
label: 'Hero section',
18+
value: 'A landing page hero section with a heading, leading text and an opt-in form.',
19+
},
1020
{
1121
id: 'Contactform',
1222
label: 'Contact form',
@@ -148,7 +158,8 @@ export default function ChatInput({openWhiteboard, showAnim}: props) {
148158
{
149159
shortcutIdeas.map((shortcut) => {
150160
return (
151-
<button
161+
<button
162+
key={shortcut.id}
152163
className='rounded-full border border-zinc-200 px-2 py-0.5 inline-flex gap-1 items-center whitespace-nowrap select-none hover:border-zinc-800 transition-colors'
153164
onClick={() => {
154165
setInitCreateText(shortcut.value);
@@ -159,8 +170,6 @@ export default function ChatInput({openWhiteboard, showAnim}: props) {
159170
</button>)
160171
})
161172
}
162-
163-
164173
</div>
165174
</div>
166175
</div>

0 commit comments

Comments
 (0)