mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-29 02:24:02 +02:00
Fix project creation type errors
This commit is contained in:
parent
74753d138b
commit
d87faf4ec6
1 changed files with 5 additions and 2 deletions
|
|
@ -69,6 +69,9 @@ const TabType = {
|
|||
|
||||
type TabState = typeof TabType[keyof typeof TabType];
|
||||
|
||||
// Add a type guard to help TypeScript understand the comparison
|
||||
const isNotBlankTemplate = (tab: TabState): boolean => tab !== 'blank';
|
||||
|
||||
const tabStyles = clsx(
|
||||
"px-4 py-2 text-sm font-medium",
|
||||
"rounded-lg",
|
||||
|
|
@ -494,7 +497,7 @@ export default function App() {
|
|||
style={{ minHeight: "120px" }}
|
||||
autoFocus
|
||||
autoResize
|
||||
required={selectedTab !== TabType.Blank}
|
||||
required={isNotBlankTemplate(selectedTab)}
|
||||
/>
|
||||
{promptError && (
|
||||
<p className="text-sm text-red-500">
|
||||
|
|
@ -510,7 +513,7 @@ export default function App() {
|
|||
<div className="space-y-4">
|
||||
<div className="flex flex-col gap-4">
|
||||
<p className="text-gray-600 dark:text-gray-400 text-sm">
|
||||
👇 Click "Create assistant" below to get started
|
||||
👇 Click “Create assistant” below to get started
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue