mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
refactor: Refactor create workspace page (#4862)
This commit is contained in:
@ -25,7 +25,6 @@ const CreateWorkspacePage: FC = () => {
|
||||
shallowEqual,
|
||||
)
|
||||
const workspaceQuotaEnabled = featureVisibility[FeatureNames.WorkspaceQuota]
|
||||
|
||||
const [authState] = useActor(xServices.authXService)
|
||||
const { me } = authState.context
|
||||
const [createWorkspaceState, send] = useMachine(createWorkspaceMachine, {
|
||||
@ -89,7 +88,8 @@ const CreateWorkspacePage: FC = () => {
|
||||
})
|
||||
}}
|
||||
onCancel={() => {
|
||||
navigate("/templates")
|
||||
// Go back
|
||||
navigate(-1)
|
||||
}}
|
||||
onSubmit={(request) => {
|
||||
send({
|
||||
|
Reference in New Issue
Block a user