Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c1f0d4

Browse files
fix: fix empty workspaces result (#17484)
After refactoring the workspaces table to use the new tablecomponents://github.com//pull/17404), the empty styles gotbroken. You can see the related PR[here](#17404).Before:![image](https://github.com/user-attachments/assets/9592d65c-9a63-4d22-8a01-8a1ce174422e)After:<img width="1210" alt="Screenshot 2025-04-21 at 10 34 19"src="https://github.com/user-attachments/assets/6545d078-80f1-4251-8816-04eb0f41e848"/>
1 parenta1925bc commit6c1f0d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎site/src/pages/WorkspacesPage/WorkspacesEmpty.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
importtype{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
importtype{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<TableEmptymessage="No results matched your search"/>;
34+
return<EmptyStatemessage="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)

[8]ページ先頭

©2009-2025 Movatter.jp