-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refine graphql query and add multiline
- Loading branch information
Showing
5 changed files
with
83 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 24 additions & 8 deletions
32
editor.planx.uk/src/pages/FlowEditor/components/Settings/ServiceSettings/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
import Container from "@mui/material/Container"; | ||
import React from "react"; | ||
import { useStore } from "pages/FlowEditor/lib/store"; | ||
import React, { useEffect } from "react"; | ||
|
||
import FlowDescription from "./FlowDescription/FlowDescription"; | ||
import FlowStatus from "./FlowStatus"; | ||
import { FooterLinksAndLegalDisclaimer } from "./FooterLinksAndLegalDisclaimer"; | ||
|
||
const ServiceSettings: React.FC = () => ( | ||
<Container maxWidth="formWrap"> | ||
<FooterLinksAndLegalDisclaimer /> | ||
<FlowStatus /> | ||
<FlowDescription /> | ||
</Container> | ||
); | ||
const ServiceSettings: React.FC = () => { | ||
const [flowSlug, teamSlug, getFlowSettings] = useStore((state) => [ | ||
state.flowSlug, | ||
state.teamSlug, | ||
state.getFlowSettings, | ||
]); | ||
|
||
useEffect(() => { | ||
const fetchFlowSettings = async () => { | ||
await getFlowSettings(flowSlug, teamSlug); | ||
}; | ||
fetchFlowSettings(); | ||
}, [flowSlug, teamSlug, getFlowSettings]); | ||
|
||
return ( | ||
<Container maxWidth="formWrap"> | ||
<FooterLinksAndLegalDisclaimer /> | ||
<FlowStatus /> | ||
<FlowDescription /> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default ServiceSettings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters