Skip to content

Commit d92649a

Browse files
authored
fix(site): use FolderIcon instead of TextAlignStartIcon for folders in template editor (#21169)
## Summary Fixes folder icons in the template editor file tree. ## Changes - Import `FolderIcon` instead of `TextAlignStartIcon` from lucide-react - Use `FolderIcon` for folder entries in the file tree _Generated with `mux`_
1 parent 4379230 commit d92649a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

site/src/modules/templates/TemplateFiles/TemplateFileTree.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import Menu from "@mui/material/Menu";
33
import MenuItem from "@mui/material/MenuItem";
44
import { SimpleTreeView, TreeItem } from "@mui/x-tree-view";
55
import { DockerIcon } from "components/Icons/DockerIcon";
6-
import {
7-
ChevronDownIcon,
8-
ChevronRightIcon,
9-
TextAlignStartIcon,
10-
} from "lucide-react";
6+
import { ChevronDownIcon, ChevronRightIcon, FolderIcon } from "lucide-react";
117
import {
128
type CSSProperties,
139
type ElementType,
@@ -92,7 +88,7 @@ export const TemplateFileTree: FC<TemplateFilesTreeProps> = ({
9288

9389
let icon: ElementType | undefined;
9490
if (isFolder(content)) {
95-
icon = TextAlignStartIcon;
91+
icon = FolderIcon;
9692
} else if (filename.endsWith(".tf")) {
9793
icon = FileTypeTerraform;
9894
} else if (filename.endsWith(".md")) {

0 commit comments

Comments
 (0)