-
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(version): release 0.18.8 version
- Loading branch information
1 parent
c968413
commit f6300e2
Showing
12 changed files
with
85 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import FormInputRange from "../FormInputRange/FormInputRange"; | ||
import { IDetails } from "../../interfaces/robotInterfaces"; | ||
import { FormikProps } from "formik/dist/types"; | ||
import { ReactElement, useEffect } from "react"; | ||
import useCreateRobot from "../../hooks/useCreateRobot"; | ||
|
||
interface ICFGpuCore { | ||
formik: FormikProps<IDetails>; | ||
disabled?: boolean; | ||
} | ||
|
||
export default function CFGpuCore({ | ||
formik, | ||
disabled, | ||
}: ICFGpuCore): ReactElement { | ||
const { robotData } = useCreateRobot(); | ||
|
||
useEffect(() => { | ||
formik.setFieldValue("ideGpuResource", 0); | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, [robotData.step1.ideGpuResourceType]); | ||
|
||
return ( | ||
<FormInputRange | ||
label={`GPU Core Count (${formik.values.ideGpuResource} Core):`} | ||
tip="GPU Core Count is the number of GPU cores that will be allocated to the IDE. The GPU cores are used to accelerate the rendering of the IDE. The GPU cores are allocated from the GPU resource pool that is available on the robot. The GPU cores are allocated from the GPU resource pool that." | ||
dataTut="create-environment-ide-gpu-core" | ||
InputProps={formik.getFieldProps("ideGpuResource")} | ||
min={0} | ||
max={robotData.step1.ideGpuResourceMaxCore || 0} | ||
disabled={formik.isSubmitting || disabled} | ||
error={formik.errors.ideGpuResource} | ||
touched={true} | ||
/> | ||
); | ||
} |
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
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