diff --git a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx index 8c780cebc..ca0fb835c 100644 --- a/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx +++ b/src/Explorer/Controls/ThroughputInput/ThroughputInput.tsx @@ -1,4 +1,15 @@ -import { Checkbox, DirectionalHint, Link, Stack, Text, TextField, TooltipHost } from "@fluentui/react"; +import { + Checkbox, + ChoiceGroup, + DirectionalHint, + IChoiceGroupOption, + Label, + Link, + Stack, + Text, + TextField, + TooltipHost, +} from "@fluentui/react"; import React, { FunctionComponent, useState } from "react"; import * as Constants from "../../../Common/Constants"; import { InfoTooltip } from "../../../Common/Tooltip/InfoTooltip"; @@ -90,7 +101,7 @@ export const ThroughputInput: FunctionComponent = ({ ); }; - const handleOnChangeMode = (event: React.ChangeEvent, mode: string): void => { + const handleOnChangeMode = (_: React.ChangeEvent, mode: string): void => { if (mode === "Autoscale") { setThroughput(AutoPilotUtils.minAutoPilotThroughput); setIsAutoScaleSelected(true); @@ -103,39 +114,46 @@ export const ThroughputInput: FunctionComponent = ({ setIsAutoscale(false); } }; - + const choiceButtonStyles = { + flexContainer: [ + { + selectors: { + ".ms-ChoiceField-wrapper label": { + fontSize: 12, + paddingTop: 0, + }, + ".ms-ChoiceField": { + marginTop: 0, + }, + }, + }, + ], + }; + const throughPutOptions: IChoiceGroupOption[] = [ + { key: "Autoscale", text: "Autoscale" }, + { key: "Manual", text: "Manual" }, + ]; return (
- + + {PricingUtils.getRuToolTipText()} - - handleOnChangeMode(e, "Autoscale")} + + , options: IChoiceGroupOption) => + handleOnChangeMode(_, options.key.toString()) + } + required /> - Autoscale - - handleOnChangeMode(e, "Manual")} - /> - Manual {isAutoscaleSelected && (