Skip to content

Commit

Permalink
removed lucide-react
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Aug 19, 2024
1 parent 333a283 commit 1faa464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .vscode/settings.json

This file was deleted.

4 changes: 3 additions & 1 deletion app/api/generateCode/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ function getSystemPrompt(shadcn: boolean) {
- Use Tailwind classes for styling. DO NOT USE ARBITRARY VALUES (e.g. \`h-[600px]\`). Make sure to use a consistent color palette.
- Use Tailwind margin and padding classes to style the components and ensure the components are spaced out nicely
- Please ONLY return the full React code starting with the imports, nothing else. It's very important for my job that you only return the React code with imports. DO NOT START WITH \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`.
- The [email protected] library is also available to be imported. If you need an icon, use one from lucide-react. Here's an example of importing and using one: import { Camera } from "lucide-react"\` & \`<Camera color="red" size={48} />\`
- ONLY IF the user asks for a dashboard, graph or chart, the recharts library is available to be imported, e.g. \`import { LineChart, XAxis, ... } from "recharts"\` & \`<LineChart ...><XAxis dataKey="name"> ...\`. Please only use this when needed.
`;

// Removed because it causes too many errors
// - The [email protected] library is also available to be imported. If you need an icon, use one from lucide-react. Here's an example of importing and using one: import { Camera } from "lucide-react"\` & \`<Camera color="red" size={48} />\`

if (shadcn) {
systemPrompt += `
There are some prestyled components available for use. Please use your best judgement to use any of these components if the app calls for one.
Expand Down

0 comments on commit 1faa464

Please sign in to comment.