File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
site/src/modules/templates/TemplateFiles Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { EditIcon } from "lucide-react";
55import { linkToTemplate , useLinks } from "modules/navigation" ;
66import { type FC , useCallback , useMemo } from "react" ;
77import { Link } from "react-router" ;
8+ import { cn } from "utils/cn" ;
89import type { FileTree } from "utils/filetree" ;
910import type { TemplateVersionFiles } from "utils/templateVersion" ;
1011import { TemplateFileTree } from "./TemplateFileTree" ;
@@ -94,7 +95,9 @@ export const TemplateFiles: FC<TemplateFilesProps> = ({
9495 < div key = { filename } css = { styles . filePanel } id = { filename } >
9596 < header css = { styles . fileHeader } >
9697 < span
97- className = { `${ info . hasDiff && "text-content-warning" } ` }
98+ className = { cn ( {
99+ "text-content-warning" : info . hasDiff ,
100+ } ) }
98101 >
99102 { filename }
100103 </ span >
You can’t perform that action at this time.
0 commit comments