Skip to content

Commit e4abbe6

Browse files
committed
fix: empty workspaces result
1 parent a1925bc commit e4abbe6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

site/src/pages/WorkspacesPage/WorkspacesEmpty.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Template } from "api/typesGenerated";
22
import { Avatar } from "components/Avatar/Avatar";
33
import { Button } from "components/Button/Button";
4-
import { TableEmpty } from "components/TableEmpty/TableEmpty";
4+
import { EmptyState } from "components/EmptyState/EmptyState";
55
import { linkToTemplate, useLinks } from "modules/navigation";
66
import type { FC } from "react";
77
import { Link } from "react-router-dom";
@@ -31,12 +31,12 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
3131
);
3232

3333
if (isUsingFilter) {
34-
return <TableEmpty message="No results matched your search" />;
34+
return <EmptyState message="No results matched your search" />;
3535
}
3636

3737
if (templates && templates.length === 0 && canCreateTemplate) {
3838
return (
39-
<TableEmpty
39+
<EmptyState
4040
message={defaultTitle}
4141
description={`${defaultMessage} To create a workspace, you first need to create a template.`}
4242
cta={
@@ -52,7 +52,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
5252

5353
if (templates && templates.length === 0 && !canCreateTemplate) {
5454
return (
55-
<TableEmpty
55+
<EmptyState
5656
message={defaultTitle}
5757
description={`${defaultMessage} There are no templates available, but you will see them here once your admin adds them.`}
5858
className="pb-0"
@@ -62,7 +62,7 @@ export const WorkspacesEmpty: FC<WorkspacesEmptyProps> = ({
6262
}
6363

6464
return (
65-
<TableEmpty
65+
<EmptyState
6666
message={defaultTitle}
6767
description={`${defaultMessage} Select one template below to start.`}
6868
cta={

0 commit comments

Comments
 (0)