Просмотр исходного кода

fixing the code the make project failed to build

reset-do-picking-order
[email protected] 1 неделю назад
Родитель
Сommit
4f04ddde6e
2 измененных файлов: 1 добавлений и 2 удалений
  1. +1
    -1
      src/components/NavigationContent/NavigationContent.tsx
  2. +0
    -1
      src/components/StyledDataGrid/StyledDataGrid.tsx

+ 1
- 1
src/components/NavigationContent/NavigationContent.tsx Просмотреть файл

@@ -343,7 +343,7 @@ const NavigationContent: React.FC = () => {
sx={{ textDecoration: "none", color: "inherit" }} sx={{ textDecoration: "none", color: "inherit" }}
> >
<ListItemButton <ListItemButton
selected={pathname === child.path || (child.path && pathname.startsWith(child.path + "/"))}
selected={pathname === child.path || (!!child.path && pathname.startsWith(child.path + "/"))}
sx={{ sx={{
mx: 1, mx: 1,
py: 1, py: 1,


+ 0
- 1
src/components/StyledDataGrid/StyledDataGrid.tsx Просмотреть файл

@@ -38,7 +38,6 @@ const StyledDataGrid = forwardRef<HTMLDivElement, DataGridProps>((props, ref) =>
{...props} {...props}
localeText={{ localeText={{
...zhTW.components.MuiDataGrid.defaultProps.localeText, ...zhTW.components.MuiDataGrid.defaultProps.localeText,
labelRowsPerPage: t("Rows per page"),
...props.localeText, // 允许覆盖 ...props.localeText, // 允许覆盖
}} }}
/> />


Загрузка…
Отмена
Сохранить