Merge pull request #1206 from iamanishroy/ui-bug-fixes

Bug fixes (ROWY-1099, ROWY-1086, ROWY-1087)
This commit is contained in:
Shams
2023-04-06 18:31:46 +02:00
committed by GitHub
3 changed files with 13 additions and 5 deletions

View File

@@ -80,6 +80,9 @@ export default function GetStartedChecklist({
marginRight: `max(env(safe-area-inset-right), 8px)`,
width: 360,
},
".MuiStepLabel-iconContainer.Mui-active svg": {
transform: "rotate(0deg) !important",
},
},
]}
>

View File

@@ -12,16 +12,21 @@ export interface ITableNameProps extends IShortTextComponentProps {
export default function TableName({ watchedField, ...props }: ITableNameProps) {
const {
field: { onChange },
field: { onChange, value },
useFormMethods: { control },
disabled,
} = props;
const watchedValue = useWatch({ control, name: watchedField } as any);
useEffect(() => {
if (!disabled && typeof watchedValue === "string" && !!watchedValue)
onChange(startCase(watchedValue));
}, [watchedValue, disabled]);
if (!disabled) {
if (typeof value === "string" && value.trim() !== "") {
onChange(value);
} else if (typeof watchedValue === "string" && !!watchedValue) {
onChange(startCase(watchedValue));
}
}
}, [watchedValue, disabled, onChange, value]);
return <ShortTextComponent {...props} />;
}

View File

@@ -108,7 +108,7 @@ export default function PopupContents({
onChange={(e) => setQuery(e.target.value)}
fullWidth
variant="filled"
label="Search items"
// label="Search items"
hiddenLabel
placeholder="Search items"
InputProps={{