File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { useActor } from "@xstate/react"
2
2
import { useContext } from "react"
3
3
import { XServiceContext } from "../xServices/StateContext"
4
4
5
- export const useOrganizationID = ( ) : string => {
5
+ export const useOrganizationId = ( ) : string => {
6
6
const xServices = useContext ( XServiceContext )
7
7
const [ authState ] = useActor ( xServices . authXService )
8
8
const organizationId = authState . context . me ?. organization_ids [ 0 ]
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import { useMachine } from "@xstate/react"
2
2
import React from "react"
3
3
import { useNavigate , useSearchParams } from "react-router-dom"
4
4
import { Template } from "../../api/typesGenerated"
5
- import { useOrganizationID } from "../../hooks/useOrganizationID "
5
+ import { useOrganizationId } from "../../hooks/useOrganizationId "
6
6
import { createWorkspaceMachine } from "../../xServices/createWorkspace/createWorkspaceXService"
7
7
import { CreateWorkspacePageView } from "./CreateWorkspacePageView"
8
8
9
9
const CreateWorkspacePage : React . FC = ( ) => {
10
- const organizationId = useOrganizationID ( )
10
+ const organizationId = useOrganizationId ( )
11
11
const [ searchParams ] = useSearchParams ( )
12
12
const preSelectedTemplateName = searchParams . get ( "template" )
13
13
const navigate = useNavigate ( )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { useMachine } from "@xstate/react"
2
2
import React from "react"
3
3
import { useParams } from "react-router-dom"
4
4
import { Loader } from "../../components/Loader/Loader"
5
- import { useOrganizationID } from "../../hooks/useOrganizationID "
5
+ import { useOrganizationId } from "../../hooks/useOrganizationId "
6
6
import { templateMachine } from "../../xServices/template/templateXService"
7
7
import { TemplatePageView } from "./TemplatePageView"
8
8
@@ -17,7 +17,7 @@ const useTemplateName = () => {
17
17
}
18
18
19
19
export const TemplatePage : React . FC = ( ) => {
20
- const organizationId = useOrganizationID ( )
20
+ const organizationId = useOrganizationId ( )
21
21
const templateName = useTemplateName ( )
22
22
const [ templateState ] = useMachine ( templateMachine , {
23
23
context : {
You can’t perform that action at this time.
0 commit comments