jayeshchoudhary commented on code in PR #15256: URL: https://github.com/apache/pinot/pull/15256#discussion_r1993636663
########## pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServer/RebalanceServerConfigurationOptions/RebalanceServerConfigurationOptionInteger.tsx: ########## @@ -0,0 +1,33 @@ +import {Box, FormControl, FormControlLabel, Input, InputLabel, Switch, Typography} from "@material-ui/core"; +import React, {useState} from "react"; +import {RebalanceServerOption} from "../RebalanceServerOptions"; +import { + RebalanceServerConfigurationOptionLabel +} from "./RebalanceServerConfigurationOptionLabel/RebalanceServerConfigurationOptionLabel"; + +type RebalanceServerConfigurationOptionIntegerProps = { + option: RebalanceServerOption; + handleConfigChange: (config: { [key: string]: string | number | boolean }) => void; +} +export const RebalanceServerConfigurationOptionInteger = ( + { option, handleConfigChange }: RebalanceServerConfigurationOptionIntegerProps +) => { + const [value, setValue] = useState<number>(option.defaultValue as number); + return ( + <Box display='flex' flexDirection='column'> + <FormControl fullWidth={true}> + <RebalanceServerConfigurationOptionLabel option={option} /> + <Input Review Comment: use <TextField type="number" /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org