File tree 1 file changed +5
-5
lines changed
site/src/pages/WorkspacesPage
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
import type { Template } from "api/typesGenerated" ;
2
2
import { Avatar } from "components/Avatar/Avatar" ;
3
3
import { Button } from "components/Button/Button" ;
4
- import { TableEmpty } from "components/TableEmpty/TableEmpty " ;
4
+ import { EmptyState } from "components/EmptyState/EmptyState " ;
5
5
import { linkToTemplate , useLinks } from "modules/navigation" ;
6
6
import type { FC } from "react" ;
7
7
import { Link } from "react-router-dom" ;
@@ -31,12 +31,12 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
31
31
) ;
32
32
33
33
if ( isUsingFilter ) {
34
- return < TableEmpty message = "No results matched your search" /> ;
34
+ return < EmptyState message = "No results matched your search" /> ;
35
35
}
36
36
37
37
if ( templates && templates . length === 0 && canCreateTemplate ) {
38
38
return (
39
- < TableEmpty
39
+ < EmptyState
40
40
message = { defaultTitle }
41
41
description = { `${ defaultMessage } To create a workspace, you first need to create a template.` }
42
42
cta = {
@@ -52,7 +52,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
52
52
53
53
if ( templates && templates . length === 0 && ! canCreateTemplate ) {
54
54
return (
55
- < TableEmpty
55
+ < EmptyState
56
56
message = { defaultTitle }
57
57
description = { `${ defaultMessage } There are no templates available, but you will see them here once your admin adds them.` }
58
58
className = "pb-0"
@@ -62,7 +62,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
62
62
}
63
63
64
64
return (
65
- < TableEmpty
65
+ < EmptyState
66
66
message = { defaultTitle }
67
67
description = { `${ defaultMessage } Select one template below to start.` }
68
68
cta = {
You can’t perform that action at this time.
0 commit comments