Skip to content

Commit 2820a2d

Browse files
committed
Add clear button on search input
Signed-off-by: Trung Nguyen <[email protected]>
1 parent e7fcd3c commit 2820a2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension/ui/src/components/CatalogGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createDockerDesktopClient } from '@docker/extension-api-client';
22
import { ExecResult } from '@docker/extension-api-client-types/dist/v0';
33
import { FolderOpenRounded } from '@mui/icons-material';
4-
import { Alert, AlertTitle, Badge, Box, Button, Checkbox, CircularProgress, Dialog, DialogContent, DialogTitle, FormControlLabel, FormGroup, Stack, Switch, Tab, Tabs, TextField, Typography } from '@mui/material';
4+
import { Alert, AlertTitle, Badge, Box, Button, Checkbox, CircularProgress, Dialog, DialogContent, DialogTitle, FormControlLabel, FormGroup, OutlinedInput, Stack, Switch, Tab, Tabs, Typography } from '@mui/material';
55
import React, { Suspense, useEffect, useState } from 'react';
66
import { CATALOG_LAYOUT_SX } from '../Constants';
77
import { MCPClientState } from '../MCPClients';
@@ -128,7 +128,7 @@ export const CatalogGrid: React.FC<CatalogGridProps> = ({
128128
tab === 0 && <Stack direction="row" spacing={1} alignItems='center' sx={{ mt: 1, py: 1, ...CATALOG_LAYOUT_SX }}>
129129
<FormGroup>
130130
<Stack direction="row" spacing={1} alignItems='center' justifyContent="space-evenly">
131-
<TextField label="Search" sx={{ width: 380 }} value={search} onChange={(e) => setSearch(e.target.value)} />
131+
<OutlinedInput size="small" type="search" placeholder="Search" sx={{ width: 380 }} value={search} onChange={(e) => setSearch(e.target.value)} />
132132
<FormControlLabel control={<Switch checked={showMine} onChange={(e) => {
133133
setShowMine(e.target.checked)
134134
localStorage.setItem('showMine', e.target.checked.toString())

0 commit comments

Comments
 (0)