1
1
import { type Interpolation , type Theme , useTheme } from "@emotion/react" ;
2
- import Button from "@mui/material/Button" ;
3
2
import IconButton from "@mui/material/IconButton" ;
4
3
import Tooltip from "@mui/material/Tooltip" ;
5
4
import { getErrorDetail , getErrorMessage } from "api/errors" ;
@@ -12,6 +11,7 @@ import type {
12
11
WorkspaceResource ,
13
12
} from "api/typesGenerated" ;
14
13
import { Alert } from "components/Alert/Alert" ;
14
+ import { Button } from "components/Button/Button" ;
15
15
import { Sidebar } from "components/FullPageLayout/Sidebar" ;
16
16
import {
17
17
Topbar ,
@@ -25,7 +25,7 @@ import { displayError } from "components/GlobalSnackbar/utils";
25
25
import { Loader } from "components/Loader/Loader" ;
26
26
import { TriangleAlertIcon } from "lucide-react" ;
27
27
import { ChevronLeftIcon } from "lucide-react" ;
28
- import { PlayIcon , PlusIcon , XIcon } from "lucide-react" ;
28
+ import { ExternalLinkIcon , PlayIcon , PlusIcon , XIcon } from "lucide-react" ;
29
29
import { linkToTemplate , useLinks } from "modules/navigation" ;
30
30
import { ProvisionerAlert } from "modules/provisioners/ProvisionerAlert" ;
31
31
import { AlertVariant } from "modules/provisioners/ProvisionerAlert" ;
@@ -255,6 +255,20 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
255
255
paddingRight : 16 ,
256
256
} }
257
257
>
258
+ < span className = "mr-2" >
259
+ < Button asChild size = "sm" variant = "outline" >
260
+ < a
261
+ href = "https://registry.coder.com"
262
+ target = "_blank"
263
+ rel = "noopener noreferrer"
264
+ className = "flex items-center"
265
+ >
266
+ Browse the Coder Registry
267
+ < ExternalLinkIcon className = "size-icon-sm ml-1" />
268
+ </ a >
269
+ </ Button >
270
+ </ span >
271
+
258
272
< TemplateVersionStatusBadge version = { templateVersion } />
259
273
260
274
< div className = "flex gap-1 items-center" >
@@ -312,8 +326,8 @@ export const TemplateVersionEditor: FC<TemplateVersionEditorProps> = ({
312
326
dismissible
313
327
actions = {
314
328
< Button
315
- variant = "text "
316
- size = "small "
329
+ variant = "subtle "
330
+ size = "sm "
317
331
onClick = { onCreateWorkspace }
318
332
>
319
333
Create a workspace
0 commit comments