Skip to content

Commit 104b1d9

Browse files
committed
Add text field
1 parent c34ad45 commit 104b1d9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

site/src/components/WorkspacesPage/WorkspacesPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { TextField } from "@material-ui/core"
12
import Button from "@material-ui/core/Button"
23
import { makeStyles } from "@material-ui/core/styles"
34
import Table from "@material-ui/core/Table"
@@ -28,6 +29,7 @@ export const WorkspacesPage: React.FC = () => {
2829
<Margins>
2930
<img className={styles.boxes} alt="boxes" src="/boxes.png" />
3031
<div className={styles.actions}>
32+
<TextField placeholder="Search all workspaces" />
3133
<Button color="primary">Create Workspace</Button>
3234
</div>
3335
<Table>

site/src/theme/overrides.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,19 @@ export const getOverrides = (palette: PaletteOptions) => {
5555
},
5656
},
5757
},
58+
MuiInputBase: {
59+
root: {
60+
background: palette.background?.paper,
61+
borderRadius: 2,
62+
},
63+
},
64+
MuiOutlinedInput: {
65+
root: {
66+
borderColor: palette.divider,
67+
"&:hover > .MuiOutlinedInput-notchedOutline": {
68+
borderColor: palette.divider,
69+
},
70+
},
71+
},
5872
}
5973
}

0 commit comments

Comments
 (0)