Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leafty committed Feb 24, 2025
1 parent 82d3256 commit bd66139
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
* limitations under the License.
*/
import cx from "classnames";
import { useContext } from "react";
import { Control, Controller } from "react-hook-form";
import { ButtonGroup } from "reactstrap";
import { SessionLauncherForm } from "../../sessionsV2.types";
import { useContext } from "react";
import AppContext from "../../../../utils/context/appContext";
import { DEFAULT_APP_PARAMS } from "../../../../utils/context/appParams.constants";
import { SessionLauncherForm } from "../../sessionsV2.types";

interface EnvironmentKindFieldProps {
control: Control<SessionLauncherForm>;
Expand Down Expand Up @@ -57,6 +57,7 @@ export default function EnvironmentKindField({
>
Global environment
</label>

<input
type="radio"
className="btn-check"
Expand All @@ -74,6 +75,7 @@ export default function EnvironmentKindField({
>
Custom Environment
</label>

{imageBuildersEnabled && (
<>
<input
Expand Down
1 change: 0 additions & 1 deletion client/src/utils/context/appParams.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,5 @@ export const DEFAULT_APP_PARAMS: AppParams = {
UPLOAD_THRESHOLD: DEFAULT_UPLOAD_THRESHOLD,
USER_PREFERENCES_MAX_PINNED_PROJECTS:
DEFAULT_USER_PREFERENCES_MAX_PINNED_PROJECTS,
// new
IMAGE_BUILDERS_ENABLED: false,
};
2 changes: 0 additions & 2 deletions client/src/utils/context/appParams.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export interface AppParams {
UI_VERSION: string;
UPLOAD_THRESHOLD: UploadThresholdParams;
USER_PREFERENCES_MAX_PINNED_PROJECTS: number;

// new
IMAGE_BUILDERS_ENABLED: boolean;
}

Expand Down
1 change: 0 additions & 1 deletion client/src/utils/context/appParams.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ export function validatedAppParams(params: unknown): AppParams {
UI_VERSION,
UPLOAD_THRESHOLD,
USER_PREFERENCES_MAX_PINNED_PROJECTS,
// new
IMAGE_BUILDERS_ENABLED,
};
}
Expand Down

0 comments on commit bd66139

Please sign in to comment.