Explorar el Código

change to MUI icons

namnguyen hace 10 meses
padre
commit
1d6239f473
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      frontend/taipy-gui/src/components/Taipy/Input.tsx

+ 6 - 4
frontend/taipy-gui/src/components/Taipy/Input.tsx

@@ -16,6 +16,8 @@ import TextField from "@mui/material/TextField";
 import Tooltip from "@mui/material/Tooltip";
 import Tooltip from "@mui/material/Tooltip";
 import {styled} from '@mui/material/styles';
 import {styled} from '@mui/material/styles';
 import IconButton from "@mui/material/IconButton";
 import IconButton from "@mui/material/IconButton";
+import ArrowDropUpIcon from '@mui/icons-material/ArrowDropUp';
+import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
 
 
 import {createSendActionNameAction, createSendUpdateAction} from "../../context/taipyReducers";
 import {createSendActionNameAction, createSendUpdateAction} from "../../context/taipyReducers";
 import {TaipyInputProps} from "./utils";
 import {TaipyInputProps} from "./utils";
@@ -28,7 +30,7 @@ const StyledTextField = styled(TextField)({
         display: 'none',
         display: 'none',
     },
     },
     '& input[type=number]': {
     '& input[type=number]': {
-        '-moz-appearance': 'textfield',
+        'MozAppearance': 'textfield',
     },
     },
 });
 });
 
 
@@ -152,7 +154,7 @@ const Input = (props: TaipyInputProps) => {
             <StyledTextField
             <StyledTextField
                 margin="dense"
                 margin="dense"
                 hiddenLabel
                 hiddenLabel
-                value={value}
+                value={value ?? ""}
                 className={className}
                 className={className}
                 type={type}
                 type={type}
                 id={id}
                 id={id}
@@ -166,13 +168,13 @@ const Input = (props: TaipyInputProps) => {
                                 size="small"
                                 size="small"
                                 onMouseDown={handleUpStepperMouseDown}
                                 onMouseDown={handleUpStepperMouseDown}
                             >
                             >
-                                
+                                <ArrowDropUpIcon />
                             </IconButton>
                             </IconButton>
                             <IconButton
                             <IconButton
                                 size="small"
                                 size="small"
                                 onMouseDown={handleDownStepperMouseDown}
                                 onMouseDown={handleDownStepperMouseDown}
                             >
                             >
-                                
+                                <ArrowDropDownIcon />
                             </IconButton>
                             </IconButton>
                         </>
                         </>
                     ),
                     ),