Skip to content

Commit f16f890

Browse files
committed
[Toolkit] Minor fixes
1 parent e755af1 commit f16f890

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Toolkit/bin/ux-toolkit-kit-debug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (!class_exists(Application::class)) {
4747
}
4848

4949
$filesystem = new Filesystem();
50-
$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer($filesystem));
50+
$kitSynchronizer = new KitSynchronizer($filesystem, new RecipeSynchronizer());
5151
$kitFactory = new KitFactory($filesystem, $kitSynchronizer);
5252

5353
(new Application())->add($command = new DebugKitCommand($kitFactory))

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)