mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-01 03:16:29 +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];
|
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(
|
const tabStyles = clsx(
|
||||||
"px-4 py-2 text-sm font-medium",
|
"px-4 py-2 text-sm font-medium",
|
||||||
"rounded-lg",
|
"rounded-lg",
|
||||||
|
|
@ -494,7 +497,7 @@ export default function App() {
|
||||||
style={{ minHeight: "120px" }}
|
style={{ minHeight: "120px" }}
|
||||||
autoFocus
|
autoFocus
|
||||||
autoResize
|
autoResize
|
||||||
required={selectedTab !== TabType.Blank}
|
required={isNotBlankTemplate(selectedTab)}
|
||||||
/>
|
/>
|
||||||
{promptError && (
|
{promptError && (
|
||||||
<p className="text-sm text-red-500">
|
<p className="text-sm text-red-500">
|
||||||
|
|
@ -510,7 +513,7 @@ export default function App() {
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<div className="flex flex-col gap-4">
|
<div className="flex flex-col gap-4">
|
||||||
<p className="text-gray-600 dark:text-gray-400 text-sm">
|
<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>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue