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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]