Skip to content

Commit 16aac9b

Browse files
gtsioliseasyCZ
authored andcommitted
Replace workspace search alert
1 parent 3fdb0a5 commit 16aac9b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

components/dashboard/src/admin/WorkspacesSearch.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { Link } from "react-router-dom";
2222
import { getGitpodService } from "../service/service";
2323
import { getProject, WorkspaceStatusIndicator } from "../workspaces/WorkspaceEntry";
2424
import WorkspaceDetail from "./WorkspaceDetail";
25-
import info from "../images/info.svg";
2625
import { PageWithAdminSubMenu } from "./PageWithAdminSubMenu";
26+
import Alert from "../components/Alert";
2727

2828
interface Props {
2929
user?: User;
@@ -138,14 +138,9 @@ export function WorkspaceSearch(props: Props) {
138138
</button>
139139
</div>
140140
</div>
141-
<div
142-
className={
143-
"flex rounded-xl bg-gray-200 dark:bg-gray-800 text-gray-600 dark:text-gray-400 p-2 w-2/3 mb-2 w-full"
144-
}
145-
>
146-
<img className="w-4 h-4 m-1 ml-2 mr-4" alt="info" src={info} />
147-
<span>Please enter complete IDs - this search does not perform partial-matching.</span>
148-
</div>
141+
<Alert type={"info"} closable={false} showIcon={true} className="flex rounded p-2 mb-2 w-full">
142+
<span>Search workspaces using workspace ID.</span>
143+
</Alert>
149144
<div className="flex flex-col space-y-2">
150145
<div className="px-6 py-3 flex justify-between text-sm text-gray-400 border-t border-b border-gray-200 dark:border-gray-800 mb-2">
151146
<div className="w-8"></div>

0 commit comments

Comments
 (0)