@@ -4,7 +4,7 @@ import VariablesIcon from "@material-ui/icons/CodeOutlined"
4
4
import { Template } from "api/typesGenerated"
5
5
import { Stack } from "components/Stack/Stack"
6
6
import { FC , ElementType , PropsWithChildren , ReactNode } from "react"
7
- import { NavLink } from "react-router-dom"
7
+ import { Link , NavLink } from "react-router-dom"
8
8
import { combineClasses } from "util/combineClasses"
9
9
import GeneralIcon from "@material-ui/icons/SettingsOutlined"
10
10
import SecurityIcon from "@material-ui/icons/LockOutlined"
@@ -52,11 +52,11 @@ export const Sidebar: React.FC<{ template: Template }> = ({ template }) => {
52
52
>
53
53
< Avatar src = { template . icon } variant = "square" fitImage />
54
54
< Stack spacing = { 0 } className = { styles . templateData } >
55
- < span className = { styles . name } >
55
+ < Link className = { styles . name } to = { `/templates/ ${ template . name } ` } >
56
56
{ template . display_name !== ""
57
57
? template . display_name
58
58
: template . name }
59
- </ span >
59
+ </ Link >
60
60
< span className = { styles . secondary } > { template . name } </ span >
61
61
</ Stack >
62
62
</ Stack >
@@ -137,6 +137,8 @@ const useStyles = makeStyles((theme) => ({
137
137
overflow : "hidden" ,
138
138
textOverflow : "ellipsis" ,
139
139
whiteSpace : "nowrap" ,
140
+ color : theme . palette . text . primary ,
141
+ textDecoration : "none" ,
140
142
} ,
141
143
secondary : {
142
144
color : theme . palette . text . secondary ,
0 commit comments