Skip to content

Commit bd03cc3

Browse files
committed
[Toolkit] Minor fixes on AlertDialog recipe and KitContextRunner
1 parent e755af1 commit bd03cc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Toolkit/kits/shadcn/AlertDialog/manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"name": "AlertDialog",
55
"description": "A modal dialog that interrupts the user with important content and expects a response.",
66
"copy-files": {
7+
"assets/": "assets/",
78
"templates/": "templates/"
89
},
910
"dependencies": {

src/Toolkit/src/Kit/KitContextRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function findAnonymousComponentTemplate(string $name): ?string
105105
{
106106
foreach ($this->kit->getRecipes(type: RecipeType::Component) as $recipe) {
107107
foreach ($recipe->getFiles() as $file) {
108-
if (str_ends_with($file->sourceRelativePathName, str_replace(':', '/', $name).'.html.twig')) {
108+
if (str_ends_with($file->sourceRelativePathName, 'templates/components/'.str_replace(':', '/', $name).'.html.twig')) {
109109
return $file->sourceRelativePathName;
110110
}
111111
}

0 commit comments

Comments
 (0)