Merge pull request #229 from presenton/fix/add-clue-layout

fix: add message to create custom template
This commit is contained in:
Suraj Jha 2025-08-18 23:46:25 +05:45 committed by GitHub
commit 2485b147d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,16 +172,22 @@ const LayoutSelection: React.FC<LayoutSelectionProps> = ({
<div className="flex items-center justify-between mb-3">
<h3 className="text-lg font-semibold text-gray-900">Custom AI Templates</h3>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{customGroups.map((group) => (
<GroupLayouts
key={group.id}
group={group}
onSelectLayoutGroup={handleLayoutGroupSelection}
selectedLayoutGroup={selectedLayoutGroup}
/>
))}
</div>
{customGroups.length === 0 ? (
<div className="text-sm text-gray-600 py-2">
No custom templates. Create one from "Create Template" menu.
</div>
) : (
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
{customGroups.map((group) => (
<GroupLayouts
key={group.id}
group={group}
onSelectLayoutGroup={handleLayoutGroupSelection}
selectedLayoutGroup={selectedLayoutGroup}
/>
))}
</div>
)}
</div>
</div>
);