-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(add ports and persist directories): 🎉 add persist directories an…
…d ports support
- Loading branch information
1 parent
e26de15
commit d3ac1fb
Showing
20 changed files
with
696 additions
and
132 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
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
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
41 changes: 41 additions & 0 deletions
41
src/components/CreateRobotFormAdvancedSettings/CreateRobotFormAdvancedSettings.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ReactElement, useState } from "react"; | ||
import Accordion from "../Accordion/AccordionV2"; | ||
import PersistedDirectoriesInputTag from "../CreateRobotFormPersistedDirectoriesInputTag/CreateRobotFormPersistedDirectoriesInputTag"; | ||
import CreateRobotFormGrantedDirectoriesInputTag from "../CreateRobotFormGrantedDirectoriesInputTag/CreateRobotFormGrantedDirectoriesInputTag"; | ||
import PortSetter from "../CreateRobotFormPortSetter/CreateRobotFormPortSetter"; | ||
|
||
interface ICreateRobotFormAdvancedSettings { | ||
formik: any; | ||
} | ||
|
||
export default function CreateRobotFormAdvancedSettings({ | ||
formik, | ||
}: ICreateRobotFormAdvancedSettings): ReactElement { | ||
const [isOpen, setIsOpen] = useState<boolean>(false); | ||
|
||
return ( | ||
<div className="mt-4"> | ||
<Accordion | ||
id={0} | ||
header={ | ||
<div className="text-xs text-layer-light-900">Advanced Settings</div> | ||
} | ||
className="rounded-md !border-layer-light-100 shadow-none" | ||
isOpen={isOpen} | ||
handleOpen={() => { | ||
setIsOpen(!isOpen); | ||
}} | ||
> | ||
<div className="flex flex-col gap-5 px-4 pb-6 pt-2"> | ||
<PersistedDirectoriesInputTag /> | ||
|
||
<CreateRobotFormGrantedDirectoriesInputTag /> | ||
|
||
<PortSetter formik={formik} type="ide" /> | ||
|
||
<PortSetter formik={formik} type="vdi" /> | ||
</div> | ||
</Accordion> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.