@@ -10,6 +10,7 @@ import { FormikContextType, FormikErrors, useFormik } from "formik"
10
10
import { FC , useState } from "react"
11
11
import { Link as RouterLink } from "react-router-dom"
12
12
import { Margins } from "../../components/Margins/Margins"
13
+ import { Stack } from "../../components/Stack/Stack"
13
14
import { getFormHelpers , onChangeTrimmed } from "../../util/formUtils"
14
15
import { workspacesMachine } from "../../xServices/workspaces/workspacesXService"
15
16
import { Language , WorkspacesPageView } from "./WorkspacesPageView"
@@ -58,16 +59,19 @@ const WorkspacesPage: FC = () => {
58
59
< >
59
60
< Margins >
60
61
< div className = { styles . actions } >
61
- < Button aria-controls = "simple-menu" aria-haspopup = "true" onClick = { handleClick } >
62
- Filter
63
- </ Button >
64
- < Menu id = "simple-menu" anchorEl = { anchorEl } keepMounted open = { Boolean ( anchorEl ) } onClose = { handleClose } >
65
- < MenuItem onClick = { setYourWorkspaces } > Your workspaces</ MenuItem >
66
- < MenuItem onClick = { setAllWorkspaces } > All workspaces</ MenuItem >
67
- </ Menu >
68
- < form onSubmit = { form . handleSubmit } >
69
- < TextField { ...getFieldHelpers ( "query" ) } onChange = { onChangeTrimmed ( form ) } fullWidth variant = "outlined" />
70
- </ form >
62
+ < Stack direction = "row" >
63
+ < Button aria-controls = "simple-menu" aria-haspopup = "true" onClick = { handleClick } >
64
+ Filter
65
+ </ Button >
66
+ < Menu id = "simple-menu" anchorEl = { anchorEl } keepMounted open = { Boolean ( anchorEl ) } onClose = { handleClose } >
67
+ < MenuItem onClick = { setYourWorkspaces } > Your workspaces</ MenuItem >
68
+ < MenuItem onClick = { setAllWorkspaces } > All workspaces</ MenuItem >
69
+ </ Menu >
70
+ < form onSubmit = { form . handleSubmit } >
71
+ < TextField { ...getFieldHelpers ( "query" ) } onChange = { onChangeTrimmed ( form ) } fullWidth variant = "outlined" />
72
+ </ form >
73
+ </ Stack >
74
+
71
75
< Link underline = "none" component = { RouterLink } to = "/workspaces/new" >
72
76
< Button startIcon = { < AddCircleOutline /> } > { Language . createButton } </ Button >
73
77
</ Link >
0 commit comments